Answers for "fatal error: opencv2/core/version.hpp: No such file or directory"

2

fatal error: opencv2/opencv.hpp: No such file or directory

g++ m.cpp -o app `pkg-config --cflags --libs opencv`
Posted by: Guest on July-07-2021
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: No such file or directory"

Code answers related to "Assembly"

Browse Popular Code Answers by Language