'opencv2/core/version.hpp':No such file or directory code example

Example: fatal error: opencv2/core/version.hpp: No such file or directory

sudo apt-get install libopencv-core-dev <<<<<on Debian and Ubuntu

error:
...
./mediapipe/framework/port/opencv_core_inc.h:18:10: fatal error: opencv2/core/version.hpp: No such file or directory
 #include <opencv2/core/version.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Solution:
probably you miss version.hpp header file in your include directory. if not there, try to install library for opencv dev package.
"sudo apt-get install libopencv-core-dev"