|
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 |
|