请选择 进入手机版 | 继续访问电脑版
搜索

2

主题

7

帖子

31

积分

新手上路

Rank: 1

积分
31
发表于 2017-11-20 21:13:31 11443 浏览 3 回复

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

按照教程在iTOP-4412上安装OpenCV出错,进行到进入release目录后使用
  1. cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
复制代码

时,cmake报错了。

  1. CMake Error at CMakeLists.txt:29 (cmake_minimum_required):                     
  2.   CMake 2.8.12.2 or higher is required.  You are running version 2.8.7         
  3.                                                                                  
  4.                                                                                  
  5. -- Configuring incomplete, errors occurred!   
复制代码


看样子说是需要2.8.12.2以上版本才能行,可是后一句又说我运行的版本是2.8.7,这不是已经符合了吗?
然后又查看了CMakeCache文件:
  1. # This is the CMakeCache file./Desktop/opencv-3.3.1/release# cat CMakeCache.txt
  2. # For build in directory: /root/Desktop/opencv-3.3.1/release                    
  3. # It was generated by CMake: /usr/bin/cmake                                    
  4. # You can edit this file to change values found and used by cmake.              
  5. # If you do not want to change any of the values, simply exit the editor.      
  6. # If you do want to change a value, simply edit, save, and exit the editor.     
  7. # The syntax for the file is as follows:                                       
  8. # KEY:TYPE=VALUE                                                               
  9. # KEY is the name of a variable in the cache.                                   
  10. # TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.            
  11. # VALUE is the current value for the KEY.                                       
  12.                                                                                  
  13. ########################                                                        
  14. # EXTERNAL cache entries                                                        
  15. ########################                                                        
  16.                                                                                  
  17. //No help, variable specified on the command line.                              
  18. CMAKE_BUILD_TYPE:UNINITIALIZED=RELEASE                                          
  19.                                                                                  
  20. //No help, variable specified on the command line.                              
  21. CMAKE_INSTALL_PREFIX:UNINITIALIZED=/usr/local                                   
  22.                                                                                  
  23. //If true, cmake will use relative paths in makefiles and projects.            
  24. CMAKE_USE_RELATIVE_PATHS:BOOL=OFF                                               
  25.                                                                                  
  26.                                                                                  
  27. ########################                                                        
  28. # INTERNAL cache entries                                                        
  29. ########################                                                        
  30.                                                                                  
  31. //This is the directory where this CMakeCache.txt was created                  
  32. CMAKE_CACHEFILE_DIR:INTERNAL=/root/Desktop/opencv-3.3.1/release                 
  33. //Major version of cmake used to create the current loaded cache               
  34. CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2                                            
  35. //Minor version of cmake used to create the current loaded cache               
  36. CMAKE_CACHE_MINOR_VERSION:INTERNAL=8                                            
  37. //Patch version of cmake used to create the current loaded cache               
  38. CMAKE_CACHE_PATCH_VERSION:INTERNAL=7                                            
  39. //Path to CMake executable.                                                     
  40. CMAKE_COMMAND:INTERNAL=/usr/bin/cmake                                          
  41. //Path to cpack program executable.                                             
  42. CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack                                    
  43. //Path to ctest program executable.                                             
  44. CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest                                    
  45. //Start directory with the top level CMakeLists.txt file for this               
  46. // project                                                                     
  47. CMAKE_HOME_DIRECTORY:INTERNAL=/root/Desktop/opencv-3.3.1                        
  48. //number of local generators                                                   
  49. CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1                                    
  50. //Path to CMake installation.                                                   
  51. CMAKE_ROOT:INTERNAL=/usr/share/cmake-2.8                                       
  52. //ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS                     
  53. CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1   
复制代码

看不出有什么问题,请问这个要怎么解决?
回复

使用道具 举报

2

主题

7

帖子

31

积分

新手上路

Rank: 1

积分
31
 楼主| 发表于 2017-11-21 09:33:38
问题已解决,是我看错版本要求了。明显7<12。
回复 点赞

使用道具 举报

1

主题

4

帖子

22

积分

新手上路

Rank: 1

积分
22
发表于 2017-11-30 11:04:19
你好,我想咨询一下,请问你是装的ubuntu系统吗?
我在opencv编译make的时候提示说no space left on device,想问一下你当时装系统的时候EMMC分区命令是怎么样的啊?
回复 点赞

使用道具 举报

1

主题

4

帖子

22

积分

新手上路

Rank: 1

积分
22
发表于 2017-12-7 17:04:57
hello楼主
还是想请求帮助,我装ubuntu最多只能给系统分区分到4G,装完opencv只剩几十M,就没空间装QT了,想问一下你是怎么解决的呢?
回复 点赞

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

登录或注册

官方客服

QQ:2551456065

官方QQ群

195631883

扫一扫关注迅为公众号

群号652692981

 
快速回复 返回顶部 返回列表