Ubuntu16.04安装opencv2.4.8报错

在尝试在Ubuntu16.04上安装opencv2.4.8时,使用cmake命令配置过程中遇到了多个警告和错误,包括依赖库未找到、CUDA配置问题、JNI未找到等。这些问题可能阻止了配置的完成。解决这些错误可能涉及查找缺失的库,更新或安装特定版本的软件,以及正确设置CUDA配置。需要对CMakeLists.txt进行检查并根据CMake错误日志进行调整。
摘要由CSDN通过智能技术生成

在ubuntu16.04中安装opencv2.4.8的时候利用如下命令进行cmake:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/haha/local -D BUILD_opencv_gpu=OFF -D CUDA_GENERATION=Kepler -D PYTHON_LIBRARY=/home/haha/local/anaconda/bin …
报错如下:
(哪位大神给解决一下,感激涕零!)

– Detected version of GNU GCC: 54 (504)
CMake Warning (dev) at cmake/OpenCVUtils.cmake:203 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake --help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like “CMAKE_COMPILER_IS_GNUCXX” will no longer be
dereferenced when the policy is set to NEW. Since the policy is not set
the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:207 (OCV_OPTION)
This warning is for project developers. Use -Wno-dev to suppress it.

– Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
– checking for module ‘gstreamer-base-0.10’
– package ‘gstreamer-base-0.10’ not found
– checking for module ‘libv4l1’
– package ‘libv4l1’ not found
– Looking for linux/videodev.h
– Looking for linux/videodev.h - not found
– Looking for linux/videodev2.h
– Looking for linux/videodev2.h - found
– Looking for sys/videoio.h
– Looking for sys/videoio.h - not found
– Looking for libavformat/avformat.h
– Looking for libavformat/avformat.h - found
– Looking for ffmpeg/avformat.h
– Looking for ffmpeg/avformat.h - not found
– CUDA detected: 9.0
– CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35
– Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
– Assume that non-module dependency is available: CUDA_nppi_LIBRARY-NOTFOUND (for module opencv_core)
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/core/CMakeLists.txt:56 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/core/CMakeLists.txt:56 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target “opencv_test_core”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
modules/core/CMakeLists.txt:58 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:58 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:58 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:59 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:59 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target “opencv_test_flann”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target “opencv_test_imgproc”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:624 (ocv_add_perf_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:624 (ocv_add_perf_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/highgui/CMakeLists.txt:285 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/highgui/CMakeLists.txt:285 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target “opencv_test_highgui”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
modules/highgui/CMakeLists.txt:321 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:321 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:321 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:322 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:322 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target
“opencv_test_features2d”. Use the target name directly with
add_custom_command, or use the generator expression $<TARGET_FILE>, as
appropriate.

Call Stack (most recent call first):
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:24

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值