2015-02-04 00:00:00
来 源
中存储网
Ubuntu
自己在Ubuntu 10.04下编译BlueZ总是出现各种错误,这次错误如下: /opt/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /opt/

自己在Ubuntu 10.04下编译BlueZ总是出现各种错误,这次错误如下:

/opt/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/opt/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1
gdbus/mainloop.o: In function `add_watch':
mainloop.c:(.text+0x2b0): undefined reference to `g_malloc0_n'
gdbus/mainloop.o: In function `add_timeout':
mainloop.c:(.text+0x53c): undefined reference to `g_malloc0_n'
gdbus/mainloop.o: In function `g_dbus_set_disconnect_function':
mainloop.c:(.text+0xa18): undefined reference to `g_malloc0_n'
gdbus/watch.o: In function `filter_data_get':
watch.c:(.text+0x698): undefined reference to `g_malloc0_n'

解决方案:

glib版本不够,开始下载的glib版本是2.16.5,升级为glib2.24.2,并且将交叉编译好的libglib*文件放到arm-linux-gcc下的lib文件夹下,再重新编译BlueZ,顺利编译成功!

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。