首页 > 系统服务 > 详细

ubuntu 11.10 (64bit) install opencv 2.4.8 and run in Qtcreator

时间:2014-11-06 10:49:54      阅读:330      评论:0      收藏:0      [点我收藏+]

install gtk2+ sudo apt-get install libgtk2.0*
sudo apt-get install cmake-qt-gui

tar xzvf opencv-2.4.8.tar.gz

mkdir build in the ~ dir the opencv-2.4.8 in the same ~ dir run cmake-qt-gui

cd to the build dir run make if the error (2.4.8)error:   /opencv248/opencv-2.4.8/cmake/cl2cpp.cmake:50 (string):   string does not recognize sub-command MD5 occur

just uncommentthe cl2cpp.cmake file in line 50 and  make again sudo make install

make a new file named opencv.conf

nano /etc/ld.so.conf.d/opencv.conf

and add the content

/usr/local/lib

run the following commend

sudo ldconfig

 

add the follow to the end of your ~/.bashrc file
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

and run commend

source ~/.bashrc

 

wget http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-linux-opensource-5.0.2-x86-offline.run chmod +x qt-linux-opensource-5.0.2-x86-offline.run ./qt-linux-opensource-5.0.2-x86-offline.run

sudo apt-get install build-essential

sudo apt-get install mesa-common-dev

sudo apt-get install libglu1-mesa-dev -y

sudo apt-get install mesa-common-dev

 

ubuntu 11.10 (64bit) install opencv 2.4.8 and run in Qtcreator

原文:http://www.cnblogs.com/yuliyang/p/4077968.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!