首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

请问关于交叉编译器导致的有关问题。

2012-02-17 
请教关于交叉编译器导致的问题。。[hanshuai@localhost minidemo]$ make/opt/gsv/workshop/devkit/bin/armv5

请教关于交叉编译器导致的问题。。
[hanshuai@localhost minidemo]$ make
/opt/gsv/workshop/devkit/bin/armv5tle-gsv-linuxeabi-gcc-4.4.1 -o bin/arm/cam_info caminfo/cam_info.c -O3 -fno-strict-aliasing -fexceptions -I/opt/gsv/workshop/devkit/include -L/usr/lib -D_arm -D_LINUX -Wall -D_REENTRANT -ldhpdcam -ldhimghelp -lm -lpthread
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: skipping incompatible /usr/lib/libpthread_nonshared.a when searching for libpthread_nonshared.a
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: skipping incompatible /usr/lib/libc_nonshared.a when searching for libc_nonshared.a
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: warning: librt.so.0, needed by /usr/lib/libdhpdcam.so, not found (try using -rpath or -rpath-link)
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: warning: libm.so.0, needed by /usr/lib/libdhpdcam.so, not found (try using -rpath or -rpath-link)
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: warning: libc.so.0, needed by /usr/lib/libdhpdcam.so, not found (try using -rpath or -rpath-link)
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: ERROR: Source object /usr/lib/libdhpdcam.so has EABI version 0, but target bin/arm/cam_info has EABI version 5
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: failed to merge target specific data of file /usr/lib/libdhpdcam.so
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: ERROR: Source object /usr/lib/libdhimghelp.so has EABI version 0, but target bin/arm/cam_info has EABI version 5
/opt/gsv/workshop/devkit/bin/../lib/gcc/armv5tle-gsv-linuxeabi/4.4.1/../../../../armv5tle-gsv-linuxeabi/bin/ld: failed to merge target specific data of file /usr/lib/libdhimghelp.so
collect2: ld returned 1 exit status
make: *** [bin/arm/cam_info] 错误 1
用交叉编译器编译嵌入式arm端的应用程序,出现如上错误,请教大虾指点啊,谢谢!~

[解决办法]
/usr/lib/是本地编译编译好的库函数,armv5tle-gsv-linuxeabi-gcc-4.4.1编译不认识本地编译好的库函数,需要把本地连接的那几个库用armv5tle-gsv-linuxeabi-gcc-4.4.1重新编译
[解决办法]
Source object /usr/lib/libdhpdcam.so has EABI version 0, but target bin/arm/cam_info has EABI version 5
交叉编译路径对么,/usr/lib一般不都是宿主的库么
[解决办法]
交叉编译还是不要用系统的库目录.
自己指定吧.

热点排行