This page describes how to build Clutter on OSX using the native OSX backend.
Before you start you should install XCode either from the OSX installation disk or by downloading it from the Apple website.
Note: These instructions have only been tested on OS X 10.6 (a.k.a Snow Leopard)
Currently the only way to install Clutter for developing applications, or hacking on Clutter itself, is to build it yourself. The recommended route is to install the dependencies with the MacPorts project, by simply invoking:
$ sudo port install libpixman cairo pango gtk-doc atk json-glib
on a terminal, after installing and updating MacPorts. This should give you all of the required dependencies for building Clutter.
It should be noted that building gtk-doc pulls in a lot of other MacPorts dependencies and takes some considerable time. You can omit this dependency so long as you disable documentation when you are configuring the build with --disable-gtk-doc --disable-docs
The Clutter Quartz backend is built by passing the --with-flavour=osx command line argument to the configure script. If not passed, the GLX backend will be built. By default, the Quartz backend depends on CoreGraphics in order to load images into textures, but it can also depend on GDK-Pixbuf or an internal, highly experimental PNG and JPEG loader.
GTK introspection is untested on OSX (as there isn't a MacPorts package) so it is recommended that you disable this with the --disable-introspection configure switch.
If building on top of MacPorts, as recommended, the following configure command should suffice:
$ ./configure --with-flavour=osx --disable-introspection --prefix=/opt/local --disable-gtk-doc --disable-docs $ make $ make install