关于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.1gdbus/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,顺利编译成功!

,风不懂云的漂泊,天不懂雨的落魄,眼不懂泪的懦弱,

关于Ubuntu 10.04下编译BlueZ错误

相关文章:

你感兴趣的文章:

标签云: