感谢支持
我们一直在努力

关于Ubuntu 10.04下编译BlueZ错误

自己在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,顺利编译成功!

赞(0) 打赏
转载请注明出处:服务器评测 » 关于Ubuntu 10.04下编译BlueZ错误
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏