* General Note: When compiling your own code, it is generally good to tell clang both the family and version of the runtime: -fobjc-runtime=gnustep-1.7

+

(The current version number can be had by looking at the latest ANNOUNCE filename in http://svn.gna.org/svn/gnustep/libs/libobjc2/trunk/ (e.g., ANNOUNCE.1.7))

+

+

+

<b>Ubuntu 12.04 Help</b>

+

+

On Ubuntu 12.04, the default installed version of CMake is 2.8.7 but you need 2.8.8 or later to compile LLVM. And the default installed version of GCC and G++ is 4.6 but you need 4.8 or later to compile LLVM.

+

+

For CMake, the solution is to download and compile CMake yourself. Use the existing CMake 2.8.7 and then replace it:

+

+

# Download the latest CMake version from the CMake web site (http://www.cmake.org/cmake/resources/software.html), and uncompress it in a folder.

+

# Create a _build directory in the CMake sources folder.

+

# From the _build directory, run the following commands to build and install CMake from sources:

Revision as of 16:12, 5 June 2014

Objective-C under Ubuntu Linux

Compiling manually

The compilation instructions below are divided into two steps.
The first step compiles the *base* (non-graphical) parts of GNUStep, including setting up the Objective-C compiler.
The second step compiles the graphical parts of GNUStep.

Some notes:

We use clang and libobjc2 for all the new features like ARC, Blocks, etc.

Tested on fresh installs of (and likely with a more completed installation of):

On Ubuntu 12.04, the default installed version of CMake is 2.8.7 but you need 2.8.8 or later to compile LLVM. And the default installed version of GCC and G++ is 4.6 but you need 4.8 or later to compile LLVM.

For CMake, the solution is to download and compile CMake yourself. Use the existing CMake 2.8.7 and then replace it: