Ask Your Question

Revision history [back]

Cmake build error OpenCV 3.4.0

Hi

After installing ffmpeg on my Ubuntu 16.04 system, i decided to rebuild Opencv with ffmpeg, however i am getting build errors, that I do not have the knowledge to understand.

command:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_EXAMPLES=ON -D WITH_FFMPEG=ON -D WITH_V4L=ON -D WITH_OPENGL=ON -D WITH_CUDA=ON -D CUDA_ARCH_BIN="3.0 5.0 6.1" -D WITH_CUBLAS=ON -D WITH_CUFFT=ON -D WITH_EIGEN=ON -D CMAKE_INSTALL_PREFIX=/usr/local ..

then:

make all -j8

Then it stops at 47%, and I do not understand what is going wrong..:

[ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/evaluation.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/akaze.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/agast_score.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/agast.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/gftt.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/brisk.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/orb.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/opencl_kernels_features2d.cpp.o cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_RELEASE.gch: not used because OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] cc1plus: warning: /home/bachelor/opencv-3.4.0/build/modules/features2d/precomp.hpp.gch/opencv_features2d_Release.gch: not used becauseOPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch] [ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.avx2.cpp.o [ 46%] Linking CXX shared library ../../lib/libopencv_features2d.so [ 46%] Built target opencv_features2d [ 46%] Linking CXX shared library ../../lib/libopencv_cudawarping.so [ 46%] Built target opencv_cudawarping [ 47%] Linking CXX shared library ../../lib/libopencv_cudaarithm.so [ 47%] Built target opencv_cudaarithm Makefile:160: recipe for target 'all' failed make: * [all] Error 2

Please help.. any help would be greatly appreciated