LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1190|回复: 2

PXA255 下摄像头采集程序编译的问题

[复制链接]
发表于 2007-9-20 16:47:27 | 显示全部楼层 |阅读模式
PXA255 下摄像头采集程序编译的问题


首先要编译jpeg库
看网上说,编译好jpeg库之后,还要编译minigui库
我先用arm-linux-gcc编译这两个库,结果如下:
[root@localhost lib]# cd /usr/local/arm/3.0/arm-linux/lib
[root@localhost lib]# file libminigui-1.6.so.2.0.0
libminigui-1.6.so.2.0.0: ELF 32-bit LSB shared object, ARM, version 1 (ARM), not stripped
[root@localhost lib]# file libjpeg.so.62.0.0
libjpeg.so.62.0.0: ELF 32-bit LSB shared object, ARM, version 1 (ARM), not stripped

vidcat_OK_1.c 是摄像头采集程序
[root@localhost vidcat_ok]# arm-linux-gcc -o v4l vidcat_OK_1.c

/tmp/ccGOV5Fg.o: In function `put_image_jpeg':

/tmp/ccGOV5Fg.o(.text+0x1198): undefined reference to `jpeg_std_error'

/tmp/ccGOV5Fg.o(.text+0x11ac): undefined reference to `jpeg_CreateCompress'

/tmp/ccGOV5Fg.o(.text+0x11f0): undefined reference to `jpeg_set_defaults'

/tmp/ccGOV5Fg.o(.text+0x1200): undefined reference to `jpeg_set_quality'

/tmp/ccGOV5Fg.o(.text+0x1214): undefined reference to `jpeg_stdio_dest'

/tmp/ccGOV5Fg.o(.text+0x1220): undefined reference to `jpeg_start_compress'

/tmp/ccGOV5Fg.o(.text+0x1270): undefined reference to `jpeg_write_scanlines'
/tmp/ccGOV5Fg.o(.text+0x12e8): undefined reference to `jpeg_write_scanlines'
/tmp/ccGOV5Fg.o(.text+0x1390): undefined reference to `jpeg_finish_compress'
/tmp/ccGOV5Fg.o(.text+0x1398): undefined reference to `jpeg_destroy_compress'
collect2: ld returned 1 exit status
发表于 2007-9-20 21:51:19 | 显示全部楼层
第一,楼主的程序要是没有用到 minigui,那么就不是必须编译它。
第二,楼主应该去查找关于 gcc 连接外部库的方法。一个简单的方法是,楼主观察一下 minigui 编译过程中最后一步,它所执行的命令中会包含 jpeg 字样,楼主可以想一想那一段参数的作用是什么
回复 支持 反对

使用道具 举报

发表于 2007-10-7 10:43:19 | 显示全部楼层
ld returned 1 exit status
感觉跟我碰到的问题一样是ld问题

楼主有没有pxa255的相关硬件驱动源代码,能不能发一份给我,万分感谢~~
mail to:ykai007@gamil.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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