在iTOP-4412上安装OpenCV出错求救!

chenhuan20123 2017-11-20 09:10:17
按照教程:http://blog.csdn.net/wanghelou123/article/details/52549335
在iTOP-4412上安装OpenCV出错,进行到进入release目录后使用
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
时,cmake报错了。
CMake Error at CMakeLists.txt:29 (cmake_minimum_required):                      
CMake 2.8.12.2 or higher is required. You are running version 2.8.7


-- Configuring incomplete, errors occurred!

看样子说是需要2.8.12.2以上版本才能行,可是后一句又说我运行的版本是2.8.7,这不是已经符合了吗?
然后又查看了CMakeCache文件:
# This is the CMakeCache file./Desktop/opencv-3.3.1/release# cat CMakeCache.txt 
# For build in directory: /root/Desktop/opencv-3.3.1/release
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//No help, variable specified on the command line.
CMAKE_BUILD_TYPE:UNINITIALIZED=RELEASE

//No help, variable specified on the command line.
CMAKE_INSTALL_PREFIX:UNINITIALIZED=/usr/local

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF


########################
# INTERNAL cache entries
########################

//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/root/Desktop/opencv-3.3.1/release
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=7
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/root/Desktop/opencv-3.3.1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-2.8
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1


看不出有什么问题,求救大神,请问这个要怎么解决?
...全文
343 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
老马何以识途 2017-11-21
  • 打赏
  • 举报
回复
显然7 < 12,升级吧
曹宇飞丶 2017-11-20
  • 打赏
  • 举报
回复
CMake 2.8.12.2 or higher is required. You are running version 2.8.7 这句话的意思是你正在运行的版本是2.8.7,而2.8.12或者更高版本是必须的。 即版本必须大于等于2.8.12

23,118

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧