The short of it is it is possible to cross-compile on linux using gcc, though it depends on whether or not the gcc on your Linux is compiled to permit cross-compiling.
The long of it is I don't know anything about MacOSX's development environment, nor about how well gcc is integrated into it. And I don't know if MacOSX is one of the supported targets in gcc, though I suspect it is. The non-X Window System environment I am passingly familiar with - Win32 - requires its own libraries and headers, and I use the version known as MinGW instead of Cygwin; I assume there is something comparable for MacOSX? Eg, libraries for the various Macintosh operating system environments, Cocoa, etc? I do know gcc includes Objective C - *.m files - but I have never used gcc's Objective C myself, and would not know about its support for MacOSX. Likewise I don't know if Apple has made available a MacOSX cross-compiling development environment for Linux. Just my 0.02c Wesley Parish On Friday 08 February 2008 19:12, A Thomas wrote: > Hello, > > Short version: I have the source for a cross-platform program. It > comes with a make file for Linux, and the files for Xcode, (for > compiling on Mac and Linux respectively). I want to compile the > program for Mac OS X, from Linux. Is this possible? I need a .app > file, not just an executable. > > Long version: I use Linux at home (duh), and the school I go to uses > Mac OS X (some Intel, some PPC), and I want to be able to use this > program at the school, but it would be a pain to compile it on the > school computers (mainly because I would have to puzzle out Xcode), > also if I need a new feature or bug fix in a new version, I would have > to go through this all again. So if I could compile this program for > Mac, from Linux, that would save a lot of time. > > Thanks, > Aidan -- Clinersterton beademung, with all of love - RIP James Blish ----- Gaul is quartered into three halves. Things which are impossible are equal to each other. Guerrilla warfare means up to their monkey tricks. Extracts from "Schoolboy Howlers" - the collective wisdom of the foolish. ----- Mau e ki, he aha te mea nui? You ask, what is the most important thing? Maku e ki, he tangata, he tangata, he tangata. I reply, it is people, it is people, it is people.
