PXA255 下摄像头采集程序编译的问题
时间:2007-09-20
来源:互联网
首先要编译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
各位高人看看到底是什么地方有问题啊?
看网上说,编译好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
各位高人看看到底是什么地方有问题啊?
作者: waterlife2001 发布时间: 2007-09-20
arm-linux-gcc -o v4l vidcat_OK_1.c -ljpeg
作者: AIKO_sex 发布时间: 2007-09-20
非常感谢AIKO_sex 。问题已解决,谢谢,谢谢。。。。。
作者: waterlife2001 发布时间: 2007-09-21
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28