

In short, cross compiling is hard, which is Sources, but you'll still need the framework headers which are not Of of C types and so on, These can be acquired from the Darwin Includes other headers which define things like the sizes and layouts Your subclasses of Apple classes will be wrong. You can't substitute GNUstep's Foundation.h forĪpple's, since they have different instance variable layouts so any of You also need copies of every header file that your You do this then you need more to get a real cross-compilingĮnvironment. I've not tried building Apple GCC on non-Apple platforms, but even if > binaries and building a cross-compiling gcc is very tricky. > This means that you have a gcc version on your Linux machine that

If you have moreĬomments, hints, tricks&tips, we can move and merge this into the I hope this helps to clarify things a little. This can beĪ full Linux machine or a OSX machine (but it is more difficult to getĪ working cross-compiler running on OSX). In this case, you need a cross-compiler on the build host. Copy the files to your Linuxī) your target machine is an embedded system

Here, you have to check that you are not using too specificįrameworks. I have an Xcode project and want to run on Linux So I would not consider this as a reasonable option.Ģ. Unfortunately, OSX uses MACH-Oīinaries and building a cross-compiling gcc is very tricky. This means that you have a gcc version on your Linux machine thatĮmits executables that run on OSX. You can easily launch by a double-click on the. The drawback is that you don't have a "native" OSX application which Then, you can set up an identical build environment on both machines. there is no single bundle thatĬovers all architectures (unless you do some additional tricks).ī) Install GNUstep on OSX using MacPorts. app bundle is different and runs on Linux only. Xcode project or the GNUmakefile if you add source files or resources. The only thing to keep in mind is that you also update the GSCoreData (look into the sources at Development is done by either working on Linux and using GORM/ProjectĬenter and compiling for Linux. xcodeproj in the same sourceĮxamples: SWK Browser from the GNUstep SWK project, DataBuilder from You have several options - more or less complex.Īdd a wrapping Xcode project (in addition to the GNUstep makefile) andĬonfigure it to compile directly on OSX for OSX using the OSX Cocoaįrameworks. I have a GNUstep source running on Linux/GNUstep and want the same Same question was asked twice this week, I have thought to write someġ. After thinking a little and taking into account that essentially the
