The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Starbase Café => Topic started by: JHGuitarFreak on December 22, 2007, 11:46:08 pm



Title: Cross-compiling: Win->Mac
Post by: JHGuitarFreak on December 22, 2007, 11:46:08 pm
What would be needed to make a cross-compiler from Windows to Mac OSX?

Or is it even possible?


Title: Re: Cross-compiling: Win->Mac
Post by: meep-eep on December 23, 2007, 01:27:02 am
You can set up gcc as a cross-compiler. You merely have to build it with the correct platform specified  to "--target".
But gcc is not enough. You need binutils, system headers of the target system, and you have to build all of the libraries you need for your target system.
It's a lot of work, and it can be tricky the first time. But the basic idea is the same for all platforms, so you should be able to find some resources online to help you through it, even if you can't find anything written specifically for MacOS X.
I'm not going to write you a walkthrough, but I'll try to answer specific questions if you have any.