|
我是利用V4L函数来进行C编程,然后移植到板子上进视频采集,在编译过程中利用的是arm-linux-gcc来完成交叉编译,但是用的时候却出现这样的问题:
[root@localhost show_video_v4l]# make
arm-linux-gcc -I /usr/local/arm/2.95.3/arm-linux/include -O -c show_video_v4l_main.c
arm-linux-gcc -I /usr/local/arm/2.95.3/arm-linux/include -O -c show_video_v4l_capture.c
arm-linux-gcc -I /usr/local/arm/2.95.3/arm-linux/include -O -c capture_v4l.c
arm-linux-gcc -I /usr/local/arm/2.95.3/arm-linux/include -O -c extract_skin_color.c
arm-linux-gcc -o show_video_v4l show_video_v4l_main.o show_video_v4l_capture.o capture_v4l.o extract_skin_color.o -L /usr/local/arm/2.95.3/arm-linux/lib -ljpeg -lpthread -lm
/usr/local/arm/2.95.3/arm-linux/lib/libjpeg.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [show_video_v4l] Error 1
直接用GCC却没问题能出来正确结果,而且如果不用 -ljpeg,编译后能出来可执行程序,但是却没办法运行想请教以下是怎么回事呢?
怎么改才可以呢?谢谢了。 |
|