您的位置:首页 > 运维架构

OpenCV:关于Ubuntu下安装OpenCV.2.3.1时出现cmake错误的解决办法

2017-10-28 15:30 1041 查看
   我在安装opencv的时候,用到cmake语句(书上P204语句)时,发生了各种错误,然后找了一个礼拜的资料终于解决了,希望大家少走弯路,下面把解决办法附上,另外非常感谢此百度博文博主!

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐