[ 20%] Built target opencv_cvv_automoc Makefile:160: recipe for target 'all' failed make: *** [all] Error 2

asked 2017-12-14 12:23:14 -0600

rezaee gravatar image

It's the second time that I want to make the opencv but it gives me such errors:

/home/m/Downloads/opencv/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory

[ 20%] Built target opencv_cvv_automoc
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

I checked and saw the file doesn't exist! I downloded the opencv zip file from sourceforge and github, but both of them had some missing files! why this happens?

I used this command to build it:

cmake -D CMAKE_BUILD_TYPE=RELEASE       -D CMAKE_INSTALL_PREFIX=/usr/local       -D INSTALL_C_EXAMPLES=ON       -D INSTALL_PYTHON_EXAMPLES=ON       -D WITH_TBB=ON       -D WITH_V4L=ON       -D WITH_QT=ON       -D WITH_OPENGL=ON       -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules       -D BUILD_EXAMPLES=ON ..

And make -j8 to make it.

edit retag flag offensive close merge delete