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
#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: *** 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
$ 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!