BlueZ compilation in Ubuntu10.04 always has various errors. This error is as follows: --------------------------------------------------------------/opt/4.5.1/bin /.. /lib/gcc/arm-none-linux-gnueabi/4.5.1 /.. /.. /.. /.. /arm-none-linux-gnueabi/bi
BlueZ compilation in Ubuntu 10.04 always has various errors. This error is as follows:
----------------------------------------------------------------
/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
Gparts/mainloop. o: In function 'add _ Watch ':
Mainloop. c :(. text + 0x2b0): undefined reference to 'G _ malloc0_n'
Gparts/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'
Gstrap/watch. o: In function 'filter _ data_get ':
Watch. c :(. text + 0x698): undefined reference to 'G _ malloc0_n'
----------------------------------------------------------------
Solution:
The glib version is not enough. The glib version to be downloaded is 2.16.5, upgraded to glib2.24.2, and the cross-compiled libglib * file is placed in the lib folder under arm-linux-gcc, re-compile BlueZ. The compilation is successful!