本文主要是介绍manifold(秒算)配置笔记——安装CUDA,opencv4tegra,opencv2.4.10,QT creater,ROS,OSDK,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
主要参考链接:
http://blog.csdn.net/u012348655/article/details/50564223
https://blog.wanghaoyu.cn/2016/02/12/install-OpenCV-and-CUDA-on-Manifold/
http://blog.csdn.net/u011619535/article/details/76100631?%3E
查看manifold的TK1版本号
ubuntu@tegra-ubuntu:~/Downloads$ uname -m && cat /etc/*release
armv7l
DISTRIB_ID=Ubuntuz
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
# R21 (release), REVISION: 4.0, GCID: 5650832, BOARD: ardbeg, EABI: hard, DATE: Thu Jun 25 22:38:59 UTC 2015
r21.4版本的cuda与opencv4tegradeb包下载地址
下载地址
安装CUDA
(Reading database ... 142818 files and directories currently installed.)
Preparing to unpack cuda-repo-l4t-r21.3-6-5-prod_6.5-42_armhf.deb ...
Unpacking cuda-repo-l4t-r21.3-6-5-prod (6.5-42) ...
dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: invalid stored block lengths'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive cuda-repo-l4t-r21.3-6-5-prod_6.5-42_armhf.deb (--install):subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:cuda-repo-l4t-r21.3-6-5-prod_6.5-42_armhf.deb
则原因应该是deb包出问题,可以尝试更换deb包下载链接,重新连接网络,更换网络连接。
安装OpenCV4tegra
安装OpenCV2.4.10
- sudo make -j4 install
Linking CXX executable ../../bin/opencv_createsamples
Linking CXX executable ../../bin/opencv_performance
Linking CXX executable ../../bin/opencv_haartraining
../../lib/libopencv_highgui.so.2.4.10: undefined reference to `half::_eLut'
../../lib/libopencv_highgui.so.2.4.10: undefined reference to `half::_toFloat'
../../lib/libopencv_highgui.so.2.4.10: undefined reference to `half::convert(int)'
在网上搜了错误undefined reference to `half::_eLut',出现的问题大多和openexr的编译安装有关,后来发现openexr是opencv的第三方库,在opencv2.4.10/3rdparty中有openexr文件夹。 openexr文件夹下有half文件夹,half文件夹下的half.h文件有对上述几个变量或函数的定义。
参考这两篇发现需要可以在cmake-gui界面下关闭openexr,尝试关闭生成新的cmakefile后,make install成功了
ubuntu@tegra-ubuntu:~/opencv-2.4.10/build$ sudo su
[sudo] password for ubuntu:
root@tegra-ubuntu:/home/ubuntu/opencv-2.4.10/build# cmake-gui
安装QT creater
安装ROS
安装OSDK
这篇关于manifold(秒算)配置笔记——安装CUDA,opencv4tegra,opencv2.4.10,QT creater,ROS,OSDK的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!