linux 下 opencv2.0 的编译与安装 …
来源:互联网 发布:什么网络电话软件好 编辑:程序博客网 时间:2024/05/16 10:29
环境:
PC机系统:Ubuntu10.10 (linux2.6.35-23)
目标板:天嵌2440 统 (系:Qt4.7,内核:2.6.30)
arm-linux-gcc:4.3.3
解压:OpenCV-2.0.0.tar.bz2
#cd
///////////// for x86 /////////////////
./configure --without-gtk --without-carbon --without-quicktime--without-1394libs --without-ffmpeg --without-python --without-swig--enable-static --enable-shared --disable-apps CXX=g++--with-v4l2
编译完for x86后,必须在执行#make clean以清除之前产生的文件。不然编译for arm 时会出错!还可以更改configure文件中的“-O2”改为“-O3“提高优化等级。
///////////// for arm /////////////////
#./configure --host=arm-linux --without-gtk --without-carbon--without-quicktime --without-1394libs --without-ffmpeg--without-python --without-swig --enable-static --enable-shared--disable-apps CXX=arm-linux-g++CPPFLAGS=-I/opt/EmbedSky/4.3.3/arm-none-linux-gnueabi/includeLDFLAGS=-L/opt/EmbedSky/4.3.3/arm-none-linux-gnueabi/libc/lib--with-v4l2
其中选项:
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
#make
#make install
移植到arm文件系统
将/opt/arm/opencv/lib里的
libcvaux.so.4.0.0
libcv.so.4.0.0
libcxcore.so.4.0.0
libhighgui.so.4.0.0
libml.so.4.0.0
拷出来全部重命名
*.so.4
QT *.pro文件中到设置
x86的设置:
INCLUDEPATH += /opt/x86/opencv/include/opencv
LIBS += -L/opt/x86/opencv/lib -lcv -lhighgui -lcxcore
将opencv的lib路径加入 /etc/ld.so.conf 并执行命令 ldconfig
arm的设置:
INCLUDEPATH += /opt/arm/opencv/include/opencv
LIBS += -L/opt/arm/opencv/lib -lcxcore -lhighgui -lcv
将opencv的lib路径加入到 LD_LIBRARY_PATH 变量中
- linux 下 opencv2.0 的编译与安装 …
- linux 下 opencv2.0 的编译与安装 …
- Windows/Linux 环境下安装 Apache …
- linux下 firefox安装flash debug …
- Linux $( )与${ }的区别
- Cs 2008 下安装OpenCV2.0/2.1
- 红薯 Linux 下 Redis 安装详解
- linux 下 /bin /sbin 的区别
- Join语句的on 与 select xxx in…
- linux qq 的安装与卸载(转…
- Linux:Qt的编译和安装配置 (本…
- Hive安装 …
- linux 下编译安装php mongodb扩展
- linux下的 lighttpd 与框架 thinkp…
- linux centos7 编译安装mysql 5.6
- 一个米农对 百度 与 谷歌 的评价 …
- VC 2008 Express下安装OpenCV2.3.1
- linux setup yum 安装
- OpenCV中的内存泄露问题(cvLoadIm…
- 计算程序运行时间
- 计算程序运行时间
- STM32 usb_mem.c和usb_sil.c文件的分析
- linux 下 opencv2.0 的编译与安装 …
- linux 下 opencv2.0 的编译与安装 …
- V4L2 usb 摄像头 测试
- V4L2 usb 摄像头 测试
- 摄像头究竟如何选购
- 摄像头究竟如何选购
- 读取随机文件
- Qt/Linux 下的摄像头捕获(Video4L…
- Qt/Linux 下的摄像头捕获(Video4L…
- 肤色检测