GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

all about cross compilation

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
ramesh
GTK+ Guru


Joined: 16 Nov 2006
Posts: 189
Location: INDIA

PostPosted: Wed Aug 27, 2008 10:09 am    Post subject: all about cross compilation Reply with quote

hi all
i would like to know about cross compilation.

1.what is meant by cross compilation.
2.what is the use and where can we use and can i use it fedora 9.
3.how to do it(step by step).
4.i have to cross compile "hello gtk" (helloword.c).

any help it should be appreciable
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 515
Location: Portland, OR USA

PostPosted: Wed Aug 27, 2008 3:35 pm    Post subject: Reply with quote

I believe it is a compiler which creates executable code for a platform other than that on which it is running. It's a relatively advanced task. The idea would be that you can compile code on your x86 fedora system for a AMD64 suse system or something along those lines.

However, I think for the average small-scale product or individual, simply compiling on the target architectures or providing source is the ideal way. For example, I'll often compile my projects for Linux using gcc on my own Linux machine, and for Windows using gcc and mingw on my Windows machine.[/quote]
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 568
Location: Falun, WI USA

PostPosted: Wed Aug 27, 2008 3:41 pm    Post subject: Reply with quote

also, if you don't have a windows system and you need to provide a window binary there's a cross-compile tutorial here:
http://ricardo.ecn.wfu.edu/~cottrell/cross-gtk/

however, most often it's just easier to ask someone else if they can build it for you
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 515
Location: Portland, OR USA

PostPosted: Wed Aug 27, 2008 3:43 pm    Post subject: Reply with quote

Right, I forgot to mention my main point....

If you're building for another platform, you will likely want to test it on that platform. Therefore, if you can't run that platform yourself, it's often easier for us little guys to allow the community to help us out in that regard. By providing the source, you can allow somebody who runs another platform to compile and test the code for you and upload or send you the executable for that platform.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP