Cmake build error OpenCV 3.4.0

asked 2018-10-19 03:59:51 -0600

erlendhade gravatar image

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 ... (more)

edit retag flag offensive close merge delete

Comments

please try to update your opencv codebase first. 3.4.0 is too old to be useful, and those problems are solved in current 3.4.3 (or master)

then, try to disable precompiled headers, cmake -DENABLE_PRECOMPILED_HEADERS=OFF

berak gravatar imageberak ( 2018-10-19 04:07:08 -0600 )edit