Building ImageMagick-6.8.6-8 on MacOS X 10.8.4
ImageMagick 6.8.6-8 is a pain to compile from scratch on MacOS X 10.8.4. The following notes outline the main steps I had to follow to get it to build.
- Install XQuartz
Install pkg-config-0.28, configured using something like:
./configure --prefix=$HOME/bin --with-internal-glib --with-pc-path=/opt/X11/lib/pkgconfig(the --with-pc-path is necessary to get it to pick up the pkg-config files that were installed with XQuartz, where it seems everything except the pkg-config binary is installed; the --with-internal-glib is to avoid having to download and install glib separately).
- Install jpeg-8b (there seems to be a release 9 available now; I expect that will work, but I haven't tried it)
Install ImageMagick, configured something like:
./configure CPPFLAGS='-I/path/to/jpeg-8b/include' LDFLAGS='-L/path/to/jpeg-8b/lib' --prefix=$HOME/bin