OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
12
返回列表 发新帖
楼主: xueketan

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

[复制链接]
发表于 2010-3-15 10:38:12 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

我的opencv版本是opencv1.1pre1,交叉编译工具是2.95.3(网上很多人推荐的),因为用3.4.1有很多问题,所以用这个
但是configure的时候也是碰到了同样的问题,我的configure命令是./configure --host=arm-linux --prefix=/usr/local/lib/opencv/ --exec-prefix=/usr/local/lib/opencv/ --without-gtk --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps CXX=arm-linux-g++ CPPFLAGS=-I/usr/include
然后出现如下错误:
configure: WARNING: If you wanted to set the --build type, don\'t use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking whether make sets $(MAKE)... (cached) yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log\' for more details.
期待高手解答
回复 支持 反对

使用道具 举报

发表于 2010-3-15 11:22:37 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

后来用回了交叉编译工具3.4.1,用如下configure命令,成功configure,成功make,成功make install
我的configure命令是./configure --host=arm-linux --prefix=/usr/local/lib/opencv/ --exec-prefix=/usr/local/lib/opencv/ --without-gtk --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps CXX=arm-linux-g++ CPPFLAGS=-I<path>/3.4.1/include CXXFLAGS=-O2
回复 支持 反对

使用道具 举报

发表于 2010-4-22 23:17:04 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

我的opencv版本是opencv1.1pre1,交叉编译工具是2.95.3(网上很多人推荐的),因为用3.4.1有很多问题,所以用这个
但是configure的时候也是碰到了同样的问题,我的configure命令是./configure --host=arm-linux --prefix=/usr/local/lib/opencv/ --exec-prefix=/usr/local/lib/opencv/ --without-gtk --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps CXX=arm-linux-g++ CPPFLAGS=-I/usr/include
然后出现如下错误:
configure: WARNING: If you wanted to set the --build type, don\'t use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking whether make sets $(MAKE)... (cached) yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log\' for more details.
期待高手解答

用的是OpenCV2.0吧?换1.0试试
回复 支持 反对

使用道具 举报

发表于 2010-4-22 23:18:36 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

楼主你好!!我按照你的方法编译通过了 但是我把可执行文件下到板子上运行 系统出错:not found 意思是没有找到我的可执行文件 但是我的那个文件明明在那个目录下面的啊??这到底是为什么??恳请各位老师解答!!
你的交叉编译器和你的文件系统不兼容~~~~~用你的开发环境自带的交叉编译器
回复 支持 反对

使用道具 举报

发表于 2010-8-2 10:13:43 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

[quote=&quot;shidiwong&quot;:3qzjth8d]我的opencv版本是opencv1.1pre1,交叉编译工具是2.95.3(网上很多人推荐的),因为用3.4.1有很多问题,所以用这个
但是configure的时候也是碰到了同样的问题,我的configure命令是./configure --host=arm-linux --prefix=/usr/local/lib/opencv/ --exec-prefix=/usr/local/lib/opencv/ --without-gtk --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps CXX=arm-linux-g++ CPPFLAGS=-I/usr/include
然后出现如下错误:
configure: WARNING: If you wanted to set the --build type, don\'t use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking whether make sets $(MAKE)... (cached) yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log\' for more details.
期待高手解答

用的是OpenCV2.0吧?换1.0试试[/quote:3qzjth8d]
这个问题我也遇到了,
到我用的就是1.0.0版的
每次用2.95.3时,都有这样的报错。
我看了它的config.log 大概意思是,
c++编译器创建不了什么文件好像是cpp0。
换为3.4.1时就没有,
在我换用命令
  1. ./configure --host=arm-linux --prefix=/usr/local/lib/opencv/
  2. --exec-prefix=/usr/local/lib/opencv/ --without-gtk --without-carbon --without-quicktime
  3. --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static
  4. --disable-shared --disable-apps CXX=arm-linux-g++ CPPFLAGS=-I、usr/src/linux-2.6.12/include
  5. CXXFLAGS=-O2
复制代码
后编译成功,我感觉这里的-O2是编译成功的主要原因
但为什么要这样用,它的作用是什么,
难道就是让3.4.1的gcc支持c89??
还请知道的朋友,说一下,谢谢。
同时这里还去掉了highgui的文件夹,因为移植时这里易出错!
在Makefile我去掉了语句中的otherlibs去掉了。
因为它下边是highgui。
我的做法是否合适,也请明示。
在此先谢过了!!
回复 支持 反对

使用道具 举报

发表于 2011-5-12 17:28:31 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

我也遇到了相同问题,先试试。谢了各位。
回复 支持 反对

使用道具 举报

发表于 2011-6-13 11:09:39 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

我在用arm-linux-gcc编译通过了opencv程序,在tq2440开发板上可以运行,但是却不能打开摄像头,摄像头模组为ov9650。请问,各位大侠,这是怎么回事?
回复 支持 反对

使用道具 举报

发表于 2011-6-13 18:27:34 | 显示全部楼层

OpenCV+ARM/Linux+摄像头+液晶构建视觉处理系统

交流 QQ549917899
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-4-29 06:43 , Processed in 0.011339 second(s), 13 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表