QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1310|回复: 5

编译中库的问题

[复制链接]
发表于 2006-7-24 18:09:19 | 显示全部楼层 |阅读模式
[root@hch vidcapture-bak]# make
/usr/local/arm/3.3.2/arm-linux/bin/gcc -DHAVE_LIBJPEG -I/usr/include   -c -o video-ca
pture.o video-capture.c
/usr/local/arm/3.3.2/arm-linux/bin/gcc -DHAVE_LIBJPEG -I/usr/include   -c -o video_de
vice.o video_device.c
/usr/local/arm/3.3.2/arm-linux/bin/gcc -DHAVE_LIBJPEG -I/usr/include   -c -o communic
ate.o communicate.c
communicate.c: In function `sendData':
communicate.c:174: warning: passing arg 5 of `sendto' from incompatible pointer type
/usr/local/arm/3.3.2/arm-linux/bin/gcc -Xlinker  -rpath-link /usr/local/arm/3.3.2/arm
-linux/lib -L. -ljpeg video-capture.o video_device.o communicate.o -o vidcat
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/ar
m-linux/3.3.2/../../../../arm-linux/lib/libjpeg.so when searching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/ar
m-linux/3.3.2/../../../../arm-linux/lib/libjpeg.a when searching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../
../../../arm-linux/lib/libjpeg.so when searching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../
../../../arm-linux/lib/libjpeg.a when searching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/arm-linux/bin/../lib/libjpeg.so
when searching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/arm-linux/bin/../lib/libjpeg.a
when searching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/arm-linux/lib/libjpeg.so when s
earching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: skipping incompatible /usr/local/arm/3.3.2/arm-linux/lib/libjpeg.a when se
arching for -ljpeg
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-lin
ux/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [video-capture] Error 1
以前也出现过这个问题,我在网上找了一下,照着下了一个libjpeg62-dev-arm.tar.gz的 包并解压成功,在lib中也可以查到相关库.但是再编译后虽然编译得比没有加库以前多点但还是有cannot find -ljpeg的问题,而且还多了skipping incompatible /usr/local/arm/3.3.2/arm-linux/bin/../lib/libjpeg.a when searching for -ljpeg等这些不兼容问题.
  请问各位高手,这个问题该如何解决呢?
  非常急!!!
发表于 2006-7-24 21:48:12 | 显示全部楼层
file /usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/ar
m-linux/3.3.2/../../../../arm-linux/lib/libjpeg.so

看看是不是arm库
回复

使用道具 举报

发表于 2006-7-24 21:58:35 | 显示全部楼层
执行file /usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/lib/libjpeg.so
把打印信息贴出来
回复

使用道具 举报

 楼主| 发表于 2006-7-24 21:58:46 | 显示全部楼层
libjpeg62 是个arm库,我在网上下的时候后面括号注明了的
回复

使用道具 举报

发表于 2006-7-24 22:13:31 | 显示全部楼层
虽然是arm库,但不一定跟你的兼容。
回复

使用道具 举报

发表于 2006-7-24 22:17:35 | 显示全部楼层
[code:1]
/usr/local/arm/3.3.2/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/lib/libjpeg.so:
ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
[/code:1]
这不是arm库,intel 80386
x86的
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 10:26 , Processed in 0.038889 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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