Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ I cross compile glib of arm on ubuntu 12.10 x64,it failed.

Posted by: Dom Mar 12 2013, 03:58 AM

I use arm-linux-4.4.3.

This is my config command:
./configure --prefix="$PWD/../release/bluez_libs" --host=arm-linux CC="arm-linux-gcc -I/home/sp/Bluez/release/bluez_libs/include -L/home/sp/Bluez/release/bluez_libs/lib" PKG_CONFIG_PATH="$PWD/../release/bluez_libs/lib/pkgconfig" ac_cv_type_long_long=yes glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getgrgid_r=yes ac_cv_func_posix_getpwuid_r=yes

When I run make,it print these error:
/usr/local/arm/4.4.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link)
./.libs/libgio-2.0.so: undefined reference to `g_module_close'
./.libs/libgio-2.0.so: undefined reference to `g_module_symbol'
./.libs/libgio-2.0.so: undefined reference to `g_module_supported'
./.libs/libgio-2.0.so: undefined reference to `g_module_open'
./.libs/libgio-2.0.so: undefined reference to `g_module_error'

How can I fix it,and what is the root cause.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)