- 解决CMP0020,CMP0071警告
Policy CMP0071 is not set
Policy CMP0020 is not set
解决方法:
-
modules/highgui/CMakeFiles/pch_Generate_opencv_highgui.dir/build.make:62: recipe for target 'modules/highgui/precomp.hpp.gch/opencv_highgui_RELEASE.gch' failed
解决方法:cmake -DENABLE_PRECOMPILED_HEADERS=OFF ...
http://answers.opencv.org/question/116926/ubuntu-1610-opencv-build-fails-stdlibh-missing/
- 如果报gpu相关的错误
解决方法:Try to add
-D WITH_CUDA=OFF
to yourcmake
command linehttps://stackoverflow.com/questions/15161278/compile-opencv-without-gpu
参考链接:
-