Install from source with delegates

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Install from source with delegates

Post by D.Mon »

Hello,

I wanted to install ImageMagick from source under OS X 10.10 Yosemite.

To do so, I first installed
  • ghostscript-9.10
  • jpeg-9a
  • libpng-1.6.16
  • tiff-4.0.3
by downloading the tar.gz files from http://www.imagemagick.org/download/delegates/ and executing

Code: Select all

./configure
make
sudo make install
Then I did the same with http://www.imagemagick.org/download/ImageMagick.tar.gz

It seems that ImageMagick does not find the delegates.
convert -version gives me:

Code: Select all

Version: ImageMagick 6.9.0-4 Q16 x86_64 2015-02-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC
Delegates (built-in): bzlib xml zlib
When I try to work with png or so, I get:

Code: Select all

no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
What do I have to do to get support for Ghostscript, jpeg, png and tiff?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Install from source with delegates

Post by fmw42 »

Either the delegates did not get installed correctly or went to some other directory that IM is no looking to.

The way I install on my Mac OSX Snow Leopard is to use MacPorts for my delegates and then install IM manually.

see
viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Re: Install from source with delegates

Post by D.Mon »

Thank you for your feedback.

I think the delegates did get installed correctly and they are in a default location (/usr/local/)
I can see some related files in /usr/local/lib

Code: Select all

ls -1 /usr/local/lib/*jpeg*
/usr/local/lib/libjpeg.9.dylib
/usr/local/lib/libjpeg.a
/usr/local/lib/libjpeg.dylib
/usr/local/lib/libjpeg.la
./configure is checking for header files
jconfig.h
jpeglib.h
tiff.h
png.h
and so on-
I don´t find theese on my system but I don´t find them on my old Lion either where I did install from source, too.

What do I have to do to get the header files on my Yosemite installation.
Do I have to install developer tarballs?
Where do I find these?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Install from source with delegates

Post by fmw42 »

Sorry, I do not know how to help further. I would review the config.log file in the IM download directory to see what errors it might show.
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Re: Install from source with delegates

Post by D.Mon »

In the config.log there are about 32 errors that say xxxxx.h file not found.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Install from source with delegates

Post by fmw42 »

All I can tell you is also to review the delegate install and see what errors they show. Some delegated do not get installed sufficiently without other delegates being needed first. That is why I use MacPorts to install all my delegates. It knows what support delegates to install first. The I install IM manually with the extra config arguments as per my link above.
Post Reply