Page 1 of 1

Building ImageMagick as a static library on OSX

Posted: 2016-04-12T04:33:23-07:00
by heinapurola
I'm trying to build ImageMagick as a static library on OSX with PNG support.

I tried following this document: http://imagemagick.sourceforge.net/docs ... MacOSX.pdf but for some reason the configure doesn't locate the PNG delegate.

I also tried this https://www.imagemagick.org/discourse-s ... hp?t=11137, i.e.
1. Downloaded ImageMagick-6.9.3-8
2. Unzipped the package to ~/ImageMagick-6.9.3-8
3. Downloaded libpng-1.6.21.tar.gz from http://www.imagemagick.org/download/delegates/
4. Uncompressed it to ~/ImageMagic-6.9.3-8/libpng
5. Copied ~/ImageMagick-6.9.3-8/libpng/scripts/makefile.darwin to ~/ImageMagick-6.9.3-8/libpng/makefile
6. Cleared prefix, ZLIBLIB and ZLIBINC from the makefile
7. Configured libpng with ./configure --disable-shared
8. Built it with make
9. Configured ImageMagick with ./configure --disable-shared --enable-delegate-build
10. Observed this output from the configure:

PNG --with-png=yes no

It would be nice if there were a static binary release for OSX but before that, could someone help me statically build ImageMagick on OSX?

Re: Building ImageMagick as a static library on OSX

Posted: 2016-04-12T05:13:37-07:00
by snibgo
I know nothing about OSX.

config.log may provide insight on why it couldn't find png.

Re: Building ImageMagick as a static library on OSX

Posted: 2016-04-12T09:34:40-07:00
by fmw42
I think you need to install the libpng delegate before you compile IM.