Building ImageMagick as a static library on OSX

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
heinapurola
Posts: 1
Joined: 2016-04-12T04:24:29-07:00
Authentication code: 1151

Building ImageMagick as a static library on OSX

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Building ImageMagick as a static library on OSX

Post by snibgo »

I know nothing about OSX.

config.log may provide insight on why it couldn't find png.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Building ImageMagick as a static library on OSX

Post by fmw42 »

I think you need to install the libpng delegate before you compile IM.
Post Reply