本文主要是介绍Ubuntu 12.04 + opencv 2.4.1 + Qt 4.8.3 + Qt creater 2.5.2 安装配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
整体参考:http://www.cnblogs.com/tornadomeet/archive/2012/07/10/2584702.html1. opencv库的安装参考http://www.samontab.com/web/2012/06/installing-opencv-2-4-1-ubuntu-12-04-lts/
最好按照上面的步骤安装,提供更多支持,opencv.org有更简便的办法,但貌似很多东西没装上。
2.Qt库编译安装参考:http://www.linuxidc.com/Linux/2012-06/62606.htm
注意 ./configure 时最好只制定路径 --prefix ;其他不要乱设,容易出问题
安装过程可能出现 warning ,即使./configure加上 -no-webkit 还是会出现,不过好像不影响。
编译过程出现提示说没有权限什么的,就sudo执行。
如果编译完错误,想重新编译,则(进入make的路径,一般是在解压后的文件夹内如/xxxopensource-src/进行make操作)
直接运行下面的命令就行了。
make uninstall
make clean
rm -rf XXX //XXX 目录
如果是编译过程出错,要重新编译
那就 make clean 然后再 ./configure make && make install
如果想编译成静态库,要在./configure 加上--enable-static。在使用静态库时需要在 QMAKE_LFLAGS 后面加上 –static
Remember that when you ran make, all the executables were created in the temporary directory where you had unzipped your original tarball. So when you run make install, these executables are copied to the final directories(./configure --prefix=xxx).
make 后把产生的文件放在原来解压的目录下,可能有一些
这篇关于Ubuntu 12.04 + opencv 2.4.1 + Qt 4.8.3 + Qt creater 2.5.2 安装配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!