2%] Built target opencv_cvv_automoc Makefile:160: recipe for target 'all' failed
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.
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.
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., ...