OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 20971|回复: 12

arm-linux opencv

[复制链接]
发表于 2007-4-18 10:28:13 | 显示全部楼层 |阅读模式
用arm-linux-gcc交叉编译环境编译时出错,请高手指点一下啦。不胜感激!

/usr/local/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/lib/libcxcore.so when searching for -lcxcore
/usr/local/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: cannot find -lcxcore
collect2: ld returned 1 exit status
opencv已经装好了,且可以编译生成目标文件*. o,但链接时就出错了。是配置问题还是少什么东东?高手们一定帮帮忙!
回复

使用道具 举报

发表于 2007-4-18 11:23:47 | 显示全部楼层

arm-linux opencv

编译时用-L包含生成的arm-linux库文件的路径
回复 支持 反对

使用道具 举报

发表于 2007-4-18 15:21:05 | 显示全部楼层

arm-linux opencv

意思是cxcore.so跟目前不兼容吧,只用过x86,不太懂。

用arm-linux-gcc交叉编译环境编译时出错,请高手指点一下啦。不胜感激!

/usr/local/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/lib/libcxcore.so when searching for -lcxcore
/usr/local/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: cannot find -lcxcore
collect2: ld returned 1 exit status
opencv已经装好了,且可以编译生成目标文件*. o,但链接时就出错了。是配置问题还是少什么东东?高手们一定帮帮忙!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-18 18:46:07 | 显示全部楼层

arm-linux opencv

多谢大侠们恢复,可问题还是解决不掉啊。
gcc直接编译怎么就可以呢?希望高手继续关照!
回复 支持 反对

使用道具 举报

发表于 2007-4-18 22:05:13 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2007-4-18 22:45:03 | 显示全部楼层

arm-linux opencv

一般的应用只要cxcore和cv就够了吧。
回复 支持 反对

使用道具 举报

发表于 2007-4-18 23:04:55 | 显示全部楼层

arm-linux opencv

多谢大侠们恢复,可问题还是解决不掉啊。
gcc直接编译怎么就可以呢?希望高手继续关照!

是你的程序没有找到你用arm-linux-gcc编译的库
你的/usr/local/lib里面放的是x86的库,用gcc当然可以编译了
所以你需要自己指定arm-linux-gcc编译的libcxcore.so所在的路径
回复 支持 反对

使用道具 举报

发表于 2007-4-19 11:15:58 | 显示全部楼层

arm-linux opencv

这样操作,先make clean
然后configure
./configure --host=arm-linux --without-gtk --without-carbon --without-v4l --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig
这样就不会编译gtk之类的东西
然后再执行make就没有问题了。

前提是你的arm-linux-gcc环境变量已经设置好:
如果您在终端输入arm,然后敲tab能看到arm-linux-gcc,arm-linux-g++等等之类的东西,那么就OK拉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-19 22:31:51 | 显示全部楼层

arm-linux opencv

非常感谢这么多热心的朋友帮助我,我用gomo1234的方法终于把问题解决了。真的非常感谢您!也非常感谢其他各位高手。你们的说法也很有道理,可能是我的Makefile写的不好吧。
也非常感谢版主,还有我们的论坛,让我解决了困扰几天的问题!
回复 支持 反对

使用道具 举报

发表于 2008-3-18 11:39:12 | 显示全部楼层

arm-linux opencv

annot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
make[3]: *** [libhighgui.la] Error 1
make[3]: Leaving directory `/usr/local/arm/opencv-0.9.7/otherlibs/highgui\'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/arm/opencv-0.9.7/otherlibs\'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/arm/opencv-0.9.7\'
make: *** [all] Error 2

按照楼上的编译,还是出现了问题,恳请大侠相助,谢谢


/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: c
annot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
make[3]: *** [libhighgui.la] Error 1
make[3]: Leaving directory `/usr/local/arm/opencv-0.9.7/otherlibs/highgui\'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/arm/opencv-0.9.7/otherlibs\'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/arm/opencv-0.9.7\'
make: *** [all] Error 2
按照楼上的编译,还是出现了问题,恳请大侠相助,谢谢
回复 支持 反对

使用道具 举报

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

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-4-20 21:15 , Processed in 0.010908 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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