Building CoreGTK from Source

Please follow the instructions for your platform below.

Linux

CoreGTK is built on top of the GNUstep or Foundation libraries. You will need a compatible Objective-C compiler, runtime and foundation library. On Debian/Ubuntu you can install these by running:

apt-get install gnustep-core-devel

You can also install clang if you wish to compile it using that instead of gcc:

apt-get install clang

Depending on the version of CoreGTK you will also need to install either the GTK+ 2 or GTK+ 3 development headers – the latest releases use GTK+ 3:

apt-get install libgtk-3-dev

or

apt-get install libgtk2.0-dev

To build, cd to the src directory and run:

make linux

Mac OS X / macOS

CoreGTK is built on top of the GNUstep or Foundation libraries. You will need a compatible Objective-C compiler, runtime and foundation library. On Mac you should have all of the libraries you need once you install Xcode and X.org. Note that you also need to install the additional Xcode command line tools.

If you are running Mac OS X v10.7 or earlier an X.org server should already be installed for you. On Mac OS v10.8 and later you can download and install it from XQuartz.

Depending on the version of CoreGTK you will also need to install either the GTK+ 2 or GTK+ 3 development headers – the latest releases use GTK+ 3. On Mac you can use MacPorts:

sudo port -v install gtk3 pkgconfig

or

sudo port -v install gtk2 pkgconfig

You can also install GNUstep using MacPorts if you want to build CoreGTK against it:

sudo port -v install gnustep-core

To build, cd to the src directory and run:

make mac

Windows

CoreGTK is built on top of the GNUstep or Foundation libraries. You will need a compatible Objective-C compiler, runtime and foundation library. On Windows you can download the libraries from GNUstep directly.

Depending on the version of CoreGTK you will also need to install either the GTK+ 2 or GTK+ 3 development headers. On Windows you can download them from the GTK+ project directly.

To build, cd to the src directory and run:

make windows