LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2013, 03:56 AM   #1
peng6662001
LQ Newbie
 
Registered: Mar 2013
Posts: 17

Rep: Reputation: Disabled
Unhappy I cross compile glib of arm on ubuntu 12.10 x64,it failed.


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.

Last edited by peng6662001; 03-12-2013 at 03:58 AM.
 
Old 03-13-2013, 04:45 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
are you sure you have read the release notes and got all updated dependencies? it is usually the case.
./configure make doesn't really break under normal circumstances.


(though I have no experience on ARM i will admit).

and have you read the error message properly?

Code:
/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link)

Last edited by bigearsbilly; 03-13-2013 at 04:46 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compile GLib for ARM striker07 Programming 4 04-27-2011 07:49 AM
Trying to cross-compile mono for ARM hal_2001 Programming 2 05-11-2010 03:18 PM
How to: Cross compile GLib lumdongtien Linux - Software 3 10-18-2009 08:36 PM
how to cross compile libsdl_image for 386 on x64? donnied Linux - Software 2 09-14-2008 08:57 PM
Glib cross compile error m.harshavardhan Linux - General 1 12-04-2007 03:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration