Game Development Community

Cross compile

by abc · in General Discussion · 04/13/2004 (8:37 am) · 8 replies

Hi!
Anyone who knows if there is possible to cross compile from linux to mac os x?
I can cross compile from linux to windows, but I've never seen anything about from linux to mac.

#1
04/13/2004 (9:01 am)
I believe it is possible, but I don't know of any resources on how to do it.
#2
04/13/2004 (10:04 am)
Okay, thanks for your reply anyway.
#3
04/13/2004 (10:43 am)
When your configuaring instead of linux choose mac
#4
04/13/2004 (10:46 am)
Is is that simple?

So configuring gcc with target=something-mac should do it?
(no I don't know what the target name is for a mac)
#5
04/13/2004 (10:55 am)
Nope. You need to have a cross compile build of gcc, that does MacOS X mach-o executables while running in Linux, plus all the headers/libs for MacOS X on your linux box, or at least access to them through a share on a MacOS X box.
It's a lot more complicated than just changing the config :)
#6
04/13/2004 (12:19 pm)
Yeah, I meant when I'm (./) configuring gcc (just like I do when I create a cross compiler for windows).
And yes ofcourse, I need headers and libraries from macos x too.
#7
04/13/2004 (2:27 pm)
Oh, I thought you meant compiling TGE :)
Of course, your best bet is to ask about crosscompiling in gcc oriented forums, as well as Darwin oriented forums, since it also runs on PCs (limited support iirc), and I wouldn't be surprised if people do crosscompiling there.
I don't know of any dedicated resource on crosscompiling to MacOS X, sorry

All important link for Apple Dev stuff :
developer.apple.com
And a collection of gcc cross compiling resources links :
is.rice.edu/~welsh/cross-compiler/Cross-Compiling-bookmarks.html
#8
04/14/2004 (12:30 am)
Ok, thanks for the info.
I'm going to check on some darwin forums.