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

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
OpenCV 2.4.9ubuntu16.04上需要以下步骤: 1. 首先,从以下链接下载OpenCV源码文件:。 2. 安必要的环境:使用以下命令安必要的依赖项: ``` sudo apt-get install build-essential cmake libgtk2.0-dev pkg-config python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev ``` 3. 解压下载的OpenCV源码文件并进入源码目录。在终端中使用以下命令进行解压: ``` unzip opencv-2.4.9.zip cd opencv-2.4.9 ``` 4. 创建一个release目录,并进入该目录: ``` mkdir release cd release ``` 5. 使用cmake编译OpenCV源码,并将所有的库文件安到/usr/local目录下: ``` cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. ``` 6. 返回到opencv-2.4.9目录: ``` cd .. ``` 7. 安OpenCV库文件: ``` sudo make install ``` 这样,你就成功地在ubuntu16.04上安OpenCV 2.4.9。请注意,这个过程可能需要一些时间,具体取决于你的系统和网络速度。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Ubuntu16.04下安opencv2.4.9及若干问题解决方法](https://blog.csdn.net/weixin_39513374/article/details/80190487)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [ubuntu16.04 下安opencv2.4.9](https://blog.csdn.net/weixin_34250434/article/details/94706217)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [matlab的冲击信号图代码-Start-Zero-Ubuntu16.04-install-caffe-cuda9.1-cndnn9.1-Op](https://download.csdn.net/download/weixin_38688145/18892111)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值