LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2009, 03:27 AM   #1
lumdongtien
LQ Newbie
 
Registered: Oct 2009
Location: HaNoi
Posts: 22

Rep: Reputation: 15
Question How to: Cross compile GLib


Hi all,

Currently, I have a mission to build a media player in mobile devices (particularly a Windows Mobile device).
I decided to build one based on GStreamer (core backend of GNU). In order to do that, I know I must do cross compile GLib (and after that cross compile GStreamer) into ARM/WinMobile architect.

I have already got/configure CeGCC & successfully cross-compiled a helloworld app. But now, I get confuse and do not know how to cross compile GLib(GStreamer also). I googled it for 2 days but the results are too general or weird. So, if anyone had experience with this kind of work or had done successfully, please give me some instruct & advice.

Thank in advance.
 
Old 10-16-2009, 05:27 AM   #2
lumdongtien
LQ Newbie
 
Registered: Oct 2009
Location: HaNoi
Posts: 22

Original Poster
Rep: Reputation: 15
Does anyone have any idea?
 
Old 10-17-2009, 04:44 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
cd glib-x.xx.x ( 2.12.x ...... 2.22.x )
./configure CC=<path-to-cross-compiler> --prefix=/<install-path>

like
./configure CC=/opt/cross/bin/arm-gcc --prefix=/home/user/files/

Glib2 is an easy one, no dependencies.
For the most other libs and applications, you will have
to compile all dependencies beforehand and and point to
all in the configure line and / or do :
export LD_LIBRARY_PATH=/<path>

I assume, that the 'arm (g)libc + the linker, ld etc. are
installed correct. Else you will have to point to them too.
The system libc and system ld are unusable ...
.. Unless your host OS is an arm system itself.
.....
 
Old 10-18-2009, 08:36 PM   #4
lumdongtien
LQ Newbie
 
Registered: Oct 2009
Location: HaNoi
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
cd glib-x.xx.x ( 2.12.x ...... 2.22.x )
./configure CC=<path-to-cross-compiler> --prefix=/<install-path>

like
./configure CC=/opt/cross/bin/arm-gcc --prefix=/home/user/files/

Glib2 is an easy one, no dependencies.
For the most other libs and applications, you will have
to compile all dependencies beforehand and and point to
all in the configure line and / or do :
export LD_LIBRARY_PATH=/<path>

I assume, that the 'arm (g)libc + the linker, ld etc. are
installed correct. Else you will have to point to them too.
The system libc and system ld are unusable ...
.. Unless your host OS is an arm system itself.
.....
Thank for your reply,

But I really don't know where to obtain arm glibc + its linker! . Can you give me some more detail please!
 
  


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 compiling glib-2.0.0 jeazh Linux - Newbie 5 12-28-2009 06:26 AM
Glib cross compile error m.harshavardhan Linux - General 1 12-04-2007 03:31 AM
glib Error: while building Cross-Compiler for PPC Dhana_pal Linux From Scratch 2 12-28-2006 12:57 AM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:54 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