Ask Your Question

Revision history [back]

I did the opencv installation instruction completely (in obunto 16, opencv 3.1.0(and 3.2)), but when i run a program, it encounter with problem

i wrote the code, and i wrote the CMakeLists.txt as it said in the site, then i wrote cmake . in linux terminal and everything went ok, but, when i wrote make, the following error has been appeared:

Scanning dependencies of target DisplayImage [ 50%] Building CXX object CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o /home/ashkan/Desktop/DisplayImage.cpp:1:30: fatal error: opencv2\opencv.hpp: No such file or directory compilation terminated. CMakeFiles/DisplayImage.dir/build.make:62: recipe for target 'CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o' failed make[2]: * [CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DisplayImage.dir/all' failed make[1]: [CMakeFiles/DisplayImage.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: ** [all] Error 2