The Cocotron is an open source project which aims to implement a cross-platform Objective-C API similar to that described by Apple Inc.'s Cocoa documentation. This includes the AppKit, Foundation, Objective-C runtime and support APIs such as CoreGraphics and CoreFoundation.

Cocotron Tools

InstallCDT - Xcode cross-compilers

Download InstallCDT-2008-06-22.zip

This includes support for @property syntax and fast enumeration.

Which will install:

  • gcc 4.3.1
  • gmp 4.2.2
  • mpfr 2.3.1
  • binutils 2.17
  • w32api-3.11
  • mingw-runtime-3.14

NOTE: InstallCDT only puts files in /Developer/Cocotron/ , ~/Application Support/Xcode/Specifications and ~/Library/Application Support/Developer/Shared/Xcode.

From a shell, run:

InstallCDT/install.sh

This script takes two arguments, a platform and architecture, the defaults being Windows and i386. You can also specify Linux i386 or Solaris sparc. Make sure your platform interface is set up before installing for Linux and Solaris

InstallCDT will download, patch, configure, build and install binutils and gcc, download and patch mingw if needed, install the platform interface for gcc, create the Xcode specification files and put them in ~/Library/Application Support/Xcode/Specifications

Once the install is done for your platform of choice, you can get started. You will need to relaunch Xcode in order for it to acknowledge the existence of the new compiler specifications.