Ubuntu装opencv2.4.9 执行cmake这一步的时候出现的这些错误,怎么改?大佬么

在Ubuntu上安装OpenCV2.4.9过程中,在执行cmake步骤时遇到了一系列错误,包括CMake Policy CMP0022的警告,找不到gstreamer-base-0.10和libv4l1模块,以及JNI库未找到等问题。错误提示显示可能需要更新或配置相应的依赖项和环境。要解决这些问题,可能需要检查系统中GCC版本,安装缺失的库,并正确配置JNI环境。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

sll@sll-virtual-machine:~/下载/opencv-2.4.9/release$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
CMake Deprecation Warning at CMakeLists.txt:47 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:85 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:77 (include)

CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:86 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:77 (include)

CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:89 (math):
math cannot parse the expression: “*100 + “: syntax error, unexpected
exp_TIMES, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
(1)
Call Stack (most recent call first):
CMakeLists.txt:77 (include)

– Detected version of GNU GCC: ()
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:208 (OCV_OPTION)
This warning is for project developers. Use -Wno-dev to suppress it.

– 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
– Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do not 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:625 (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 not 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:625 (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:789 (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 $, 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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:735 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:735 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:647 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:647 (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:789 (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 $, as appropriate.

Call Stack (most recent call first):
cmake/OpenCVModule.cmake:649 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:649 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:649 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:647 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:647 (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:789 (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 $, as appropriate.

Call Stack (most recent call first):
cmake/OpenCVModule.cmake:649 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:649 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:649 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:735 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:650 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:735 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:650 (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 not 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:625 (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 not 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:625 (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:789 (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 $, 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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:792 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:735 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:735 (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 not 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:625 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:647 (ocv_add_precompiled_headers)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值