Building GEGL and BABL on Mac OS X
Since GEGL depends on BABL, we’ll build BABL first. Note: this was done on PPC 10.4.11.
There are 2 ways to build BABL, either from the tarballs or from svn. The svn “bleeding edge” way has no problems at the time of this writing:
$ svn co http://svn.gnome.org/svn/babl/trunk/ babl-trunk
$ cd babl-trunk
$ ./autogen.sh
$ make
$ sudo make install
However, if you build from the current source releases at ftp://ftp.gtk.org/pub/babl/ on OS X, you might incur into the error: “unrecognized option '-shared'“. (gcc that comes with OS X doesn’t support the -shared option.) E.g. I verified this problem on the 0.0.18 tarball. To fix this, you can just edit the ./extensions/Makefile:
#LDFLAGS = -shared
LDFLAGS = -dynamiclib # OSX setting
#SHREXT = .so
SHREXT = .dylib # OSX setting
then run make again.
Once BABL is installed, let’s do GEGL. At the time of this writing, GEGL doesn’t officially build on OS X.
If you build GEGL from the tarballs, you might incur in similar “-shared” errors as for BABL. (E.g. the 0.0.14 tarball is affected by this problem). Building from svn initially gave me a few errors which were quickly fixed in a few hours, so it’s simply as:
$ svn co http://svn.gnome.org/svn/gegl/trunk/ gegl-trunk
$ cd gegl-trunk
$ ./autogen.sh
$ make
$ sudo make install
Only problem here is that the build failed on the sample compositions with errors like:
--[Updating sample compositions]--
./OpenRaster-00.xml
make[5]: *** No rule to make target `OpenRaster-00.png'. Stop.
(Similar errors for OpenRaster-01.xml, OpenRaster-04.xml, clones.xml.) I figured this was not essential and ran make install anyway. The library files seemed to get installed (/usr/local) so hopefully that’s enough. However, the gegl.pc file did NOT get installed, so I had to copy it manually. Assuming you installed GEGL in the default /usr/local tree:
$ cp gegl-trunk/gegl.pc /usr/local/lib/pkgconfig/
This build seemed good enough to build GIMP with it. So, there you have it. I guess the morale here is, sometimes svn is just better than a tarball.
Update: these bugs seem fixed now. Cool!
4 Comments »
RSS feed for comments on this post.
TrackBack URI for this entry: http://cubelogic.org/act/166/trackback

This is somewhat outdated already as tonight the build infrastructure in GEGL was changed to make use of libtool for the GEGL modules. This is supposed to make things work on Mac OS X.
And you can expect a GEGL tarball to be released in the next days.
Comment by Sven — @ 20080221 2317 Thursday
That’s great. Yeah things with GEGL seems to be moving fast (unfortunately it’s not always like that), I had much more problems just a few days ago. Thx.
Comment by ep — @ 20080221 2350 Thursday
[...] on GEGL for Mac OS X: upcoming release 0.0.16 will build on Mac OS X. Those guys were indeed fast in fixing the reported [...]
Pingback by Cubelogic Improv » Upcoming GEGL release for OS X — @ 20080226 1545 Tuesday
[...] – build BABL and GEGL: be sure to get GEGL v0.0.16+ or refer to this page. [...]
Pingback by Cubelogic Improv » Building GIMP on Mac OS X — @ 20080229 1829 Friday