ubuntu16.04编译opencv3.4.1和contrib遇到的错误及解决方法

Cmake error at
opencv_contrib-master/modules/datasets/CMakeLists.txt:5 (ocv_append_source_files_cxx_compiler_options):
Unknown CMake command "ocv_append_source_files_cxx_compiler_options".

-- Configuring incomplete, errors occurred!
See also "/home/sunhong/Downloads/opencv-3.4.1/my_build_dir/CMakeFiles/CMakeOutput.log".

See also "/home/sunhong/Downloads/opencv-3.4.1/my_build_dir/CMakeFiles/CMakeError.log".

解决方法:

1.注释掉:opencv_contrib-master/modules/datasets/CMakeLists.txt:5 (ocv_append_source_files_cxx_compiler_options):

2.

~\opencv_contrib\modules\dnn_modern\CMakeLists.txt
20行改为
ocv_download(PACKAGE "v1.0.0a3.tar.gz"

~\opencv_contrib\modules\xfeatures2d\cmake\download_boostdesc.cmake
22行改为
 ocv_download(PACKAGE ${name_${id}}

~\opencv_contrib\modules\ xfeatures2d\cmake\download_vgg.cmake
16行改为
ocv_download( PACKAGE ${name_${id}}

3. ippicv包的问题:由于网络原因

你可能感兴趣的:(opencv相关代码,新人接触Ubuntu,linux深度学习)