/usr/bin/ld: error when run ./build.sh after compiling opencv2.4.10 on ubuntu12.04
来源:互联网 发布:最简单php图片验证码 编辑:程序博客网 时间:2024/04/29 19:36
I had tried to run ./build.sh(in ~/sample/c), but I get such errors
compiling adaptiveskindetector.cpp
/usr/bin/ld: error: cannot find -lcufft
/usr/bin/ld: error: cannot find -lnpps
/usr/bin/ld: error: cannot find -lnppi
/usr/bin/ld: error: cannot find -lnppc
collect2: ld returned 1 exit status
my solution for this:
make a symbolic link to libcuda where ld is searching it
sudo ln -s /usr/local/cuda/lib64/libnpps.so /usr/lib/libnpps.sosudo ln -s /usr/local/cuda/lib64/libnppi.so /usr/lib/libnppi.sosudo ln -s /usr/local/cuda/lib64/libnppc.so /usr/lib/libnppc.sosudo ln -s /usr/local/cuda/lib64/libcufft.so /usr/lib/libcufft.sosudo ln -s /usr/local/cuda/lib64/libcudart.so /usr/lib/libcudart.sosudo ldconfig
After created the links, the errors all gone. Wish this useful for other people!
0 0
- /usr/bin/ld: error when run ./build.sh after compiling opencv2.4.10 on ubuntu12.04
- error:/usr/bin/ld:skipping incompatible ./libxxxx.so when searching for -lxxxx
- error:/usr/bin/ld:skipping incompatible ./libxxxx.so when searching for -lxxxx
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- 执行做jffs2的build.sh脚本错误————/usr/bin/ld: cannot find -lc
- ubuntu12.04 编译报错/usr/bin/ld: cannot find -lz
- ubuntu12.04(64bit)安装 android4.2.2 出现 /usr/bin/ld: cannot find -llzo2
- ORA-15033 error when run root.sh
- 编译时候出现/usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned
- Linux: /usr/bin/ld: cannot find -lc Error and Solution
- Android error: "/usr/bin/ld: cannot find -lz"
- error:/usr/bin/ld:skipping incompatible ./libxxxx.so
- Qt报错 /usr/bin/ld: error: cannot find -lGL
- Patch 17907988 post: error /usr/bin/ld: cannot find -lhpi
- “/usr/bin/ld: cannot find -lopenblas” error in Caffe compilation
- 常用git命令集
- 从零开始学习OpenWrt完美教程
- Python的multiprocessing连接池
- 第8周 项目3 多分段函数求值
- 第8周项目—1—分段函数求值
- /usr/bin/ld: error when run ./build.sh after compiling opencv2.4.10 on ubuntu12.04
- 快速Android开发系列网络篇之Android-Async-Http
- 字符串指针作为函数的参数.实现strcpy()函数
- 求解极大似然估计步骤
- Sticker.js生成图片或者页面元素“速干贴”效果
- Jsoup基本用法
- Eclipse构建Maven项目
- 3.非关系型数据库(Nosql)之mongodb:升降序排序,排序分页,$all,$in,$nin,$or,$nor, $exists,游标,更新(update,$set,$unset,$inc)
- 纯虚函数