Ubuntu15.04中测试安装的opencv2.4.9 时遇到usr/bin/ld: cannot find -lcufft解决方法。

在Ubuntu15.04上安装OpenCV2.4.9后,运行样本时出现链接错误:找不到-lcufft、-lnpps、-lnppi、-lnppc和-lcudart。通过查找资料发现这些是CUDA的库文件,于是在/usr/local/cuda-7.0/lib64目录下找到相应的.so.7.0文件。为解决这个问题,将这些文件在/usr/local/lib下创建软链接,成功解决了链接错误,使得OpenCV样本能够正常运行。
摘要由CSDN通过智能技术生成

Ubuntu15.04中安装完opencv2.4.9后,进入opencv目录/samples/c/ 运行./build_all.sh   出先下面错误:

/usr/bin/ld: cannot find -lcufft

/usr/bin/ld: cannot find -lnpps

/usr/bin/ld: cannot find -lnppi

/usr/bin/ld: cannot find -lnppc

/usr/bin/ld: cannot find -lcudart


去网上找了许多解决/usr/bin/ld: cannot find -lxxx问题的资料,但是都没有解决。


不过看到一些材料中说libcufft,libnpps,libnppi,libnppc,libcudart是cuda的库,,搜索/usr/local/cuda-7.0/lib64,果然发现了libcufft.so.7.0,libnpps.so.7.0,libnppi.so.7.0

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值