2%] Built target opencv_cvv_automoc Makefile:160: recipe for target 'all' failed

asked 2017-12-14 00:42:21 -0500

lm35 gravatar image

Tried to build with "cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D WITH_CUBLAS=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -DCUDA_NVCC_FLAGS="-D_FORCE_INLINES" -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON .."

when i run cmake its failing at "Generating moc_singlefilterview.cpp Generating moc_translationsmatchview.cpp [ 2%] Built target opencv_cvv_automoc Makefile:160: recipe for target 'all' failed make: * [all] Error 2 "

I was trying to install Opencv3.1.0 with CUDA 8 in Ubuntu 14.04

Please guide me.

edit retag flag offensive close merge delete

Comments

that isnot the real error msg (which should be a few lines above). can you take another look ?

you could also try to disable the cvv module with cmake -DWITH_opencv_cvv=OFF

"I was trying to install Opencv3.1.0" -- please try with latest master branch, esp., if you want to use the contrib modules.

berak gravatar imageberak ( 2017-12-14 01:19:12 -0500 )edit

Thankyou berak. Tried the first option ( -DWITH_opencv_cvv=OFF), but getting the same error. So I tried with OpenCV3.3.0, which gave C++11 related errors while running cmake. For the second issue i got solution from https://stackoverflow.com/questions/4.... From the solutions listed i followed " modify the flag OPENCV_EXTRA_MODULES_PATH to the reference where the source files of the modules of opencv_contrib 3.3.0 are".

But "make -j4" again showed error as "Scanning dependencies of target opencv_stitching_pch_dephelp [ 10%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o -- fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory compilation terminated., ...

lm35 gravatar imagelm35 ( 2017-12-14 05:05:20 -0500 )edit