|
|
| Author |
Message |
|
|
ramesh GTK+ Guru
Joined: 16 Nov 2006 Posts: 189 Location: INDIA
|
Posted: Wed Aug 27, 2008 10:09 am Post subject: all about cross compilation |
|
|
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
|
Posted: Wed Aug 27, 2008 3:35 pm Post subject: |
|
|
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
|
Posted: Wed Aug 27, 2008 3:41 pm Post subject: |
|
|
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
|
Posted: Wed Aug 27, 2008 3:43 pm Post subject: |
|
|
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 |
|
 |
|