Ubuntu 下搭建Opencv!

转载:http://hi.baidu.com/beizhengzsf/item/ffa1bac172c8272e47d5c05b

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值