Answers for "fatal error: 'opencv2/core/version.hpp' file not found"

C++
0

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"
Posted by: Guest on March-25-2021

Code answers related to "fatal error: 'opencv2/core/version.hpp' file not found"

Browse Popular Code Answers by Language