OpenCV中文网站

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

mini2440_undefined reference to `cvSetImageIOFunctions'

[复制链接]
发表于 2009-10-24 22:22:13 | 显示全部楼层 |阅读模式
就在mini2440上移植opencv请教各位达人以下问题:
(1)关于移植opencv:
在VM的fedora9下移植opencv我用的configure完整命令为:
./configure --host=arm-linux --without-gtk --without-carbon --without-v4l --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps CXX=arm-linux-g++ CPPFLAGS=-I/usr/include
然后进行make 、make install等操作完全依照http://www.opencv.org.cn/index.php/%E5%B5%8C%E5%85%A5%E5%BC%8FARM%E7%B3%BB%E7%BB%9F%E4%B8%AD%E5%AE%89%E8%A3%85进行,但是编译facedetect时出现下面的错误:
/usr/local/lib/libhighgui.a(loadsave.o): In function `global constructors keyed to _ZN14CvImageFiltersC2Ev':
loadsave.cpp.text+0x1dc): undefined reference to `cvSetImageIOFunctions'
loadsave.cpp.text+0x210): undefined reference to `cvShowImage'
collect2: ld returned 1 exit status
(2)关于交叉编译facedetect.c
所用的完整编译命令为:
arm-linux-g++ facedetect.c -o fdv4l2 `pkg-config --cflags --libs opencv`
(其中facedetect.c文件我没有做任何改动!!!!)
经过上面的命令编译后出现下面的错误编译结果:
[root@localhost c]# arm-linux-g++ facedetect.c -lpng -ljpeg -o fdv4l2 `pkg-config --cflags --libs opencv`
cc1plus: warning: include location "/usr/local/include/opencv" is unsafe for cross-compilation
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation
/tmp/cciey9RG.o: In function `main':
facedetect.c.text+0x7c4): undefined reference to `cvNamedWindow'
facedetect.c.text+0x8bc): undefined reference to `cvWaitKey'
facedetect.c.text+0x94c): undefined reference to `cvWaitKey'
facedetect.c.text+0xa4c): undefined reference to `cvWaitKey'
facedetect.c.text+0xaa0): undefined reference to `cvDestroyWindow'
/usr/local/lib/libhighgui.a(loadsave.o): In function `global constructors keyed to _ZN14CvImageFiltersC2Ev':
loadsave.cpp.text+0x1dc): undefined reference to `cvSetImageIOFunctions'
loadsave.cpp.text+0x210): undefined reference to `cvShowImage'
collect2: ld returned 1 exit status
请求指点!!!,真心感谢!!
回复

使用道具 举报

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

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-4-19 23:36 , Processed in 0.009645 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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