OpenCV:关于Ubuntu下安装OpenCV.2.3.1时出现cmake错误的解决办法
2017-10-28 15:30
1041 查看
我在安装opencv的时候,用到cmake语句(书上P204语句)时,发生了各种错误,然后找了一个礼拜的资料终于解决了,希望大家少走弯路,下面把解决办法附上,另外非常感谢此百度博文博主!
I have tried the opencv-2.4.0, it works very well and seems that it does not show any error in my compilation process.
Issue 1. when using cmake, the result always gives:
"CUDA_TOOLKIT_ROOT_DIR not found or specified", CUDA is a parallel computing platform and programming model that enables dramatic increases in computing performance by harnessing the power of the graphics
processing unit (GPU). It is only developed for NVdia GPU. However, it seems that not all PC will be equipped with that kind of GPU, theoretically, it is not necessary to install it and we make the option WITH_CUDA OFF. Also the opencv only support CUDA 4.0
now from the post bellow.
http://tech.groups.yahoo.com/group/OpenCV/message/85791
From below link, you can install CUDA 4.0 successfully
http://blog.ryant.org/2011/12/installing-cuda-toolkit-on-ubuntu-1110.html
Issue 2. ImportError: No module named sphinx:
Just copy the following line, then this problem disappear.
sudo apt-get install python-sphinx
Issue 3. ImportError: No module named numpy.distutils
sudo apt-get install python-numpy
Issue 4. JASPER (JASPER LIBRARY, JASPER_INCLUDE_ADDR)
sudo apt-get install libjasper-dev
Insall OpenCV on Ubuntu 11.10 and later
I tried to install the both opencv-2.3.0 and opencv-2.3.1 for several times and it never works, which disappointed me very much. Open a blog for this issue, hoping solve it one day.I have tried the opencv-2.4.0, it works very well and seems that it does not show any error in my compilation process.
Issue 1. when using cmake, the result always gives:
"CUDA_TOOLKIT_ROOT_DIR not found or specified", CUDA is a parallel computing platform and programming model that enables dramatic increases in computing performance by harnessing the power of the graphics
processing unit (GPU). It is only developed for NVdia GPU. However, it seems that not all PC will be equipped with that kind of GPU, theoretically, it is not necessary to install it and we make the option WITH_CUDA OFF. Also the opencv only support CUDA 4.0
now from the post bellow.
http://tech.groups.yahoo.com/group/OpenCV/message/85791
From below link, you can install CUDA 4.0 successfully
http://blog.ryant.org/2011/12/installing-cuda-toolkit-on-ubuntu-1110.html
Issue 2. ImportError: No module named sphinx:
Just copy the following line, then this problem disappear.
sudo apt-get install python-sphinx
Issue 3. ImportError: No module named numpy.distutils
sudo apt-get install python-numpy
Issue 4. JASPER (JASPER LIBRARY, JASPER_INCLUDE_ADDR)
sudo apt-get install libjasper-dev
相关文章推荐
- Ubuntu下安装bochs出现错误的解决办法
- ubuntu bochs 编译安装及可能出现的错误的解决办法
- ubuntu安装软件中出现依赖性错误无法安装解决办法
- 安装Microsoft Windows SDK 7.1时出现的错误(附解决办法)
- 使用wubi安装ubuntu14.04出现的常见错误的解决办法
- 在Ubuntu下安装tinyos详细教程以及运行TestSerial例子出现错误解决办法
- VirtualBox 安装 ubuntu 出现This kernel requires an X86-64 CPU,but only detected an i686 CPU错误的解决办法
- ubuntu 12.04 安装deb包出现内部错误解决办法
- 虚拟机下Ubuntu安装VMWare Tools出现错误“找不到kernel header文件路径”解决办法
- 关于安装d3时terminal出现 permission denied错误的解决办法
- [置顶] 关于离线安装genymotion时出现的错误的解决办法
- Win7X64系统下安装NetAdvantage2005Vol1时出现Error1606错误的解决办法
- Ubuntu14.04安装后出现磁盘错误解决办法
- 关于IIS安装后出现500错误的解决办法
- opencv中关于图像图像处理时出现Bad argument (Array should be the cvMat or IplImage) in unknown function ……错误的解决办法
- python2.7,Ubuntu14.04环境下pip安装插件,cffi插件出现一下错误解决办法。
- ubuntu 安装dict-xdict出现错误的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- U盘安装ubuntu 10.10,出现错误:Could not find kernel image 的解决办法
- 安装Microsoft Windows SDK 7.1时出现的错误(附解决办法)