Dependencies not found (OS X)

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
JamesGreen

Dependencies not found (OS X)

Post by JamesGreen »

Hi,

When I compile ImageMagick (6.5.8-8) on my Mac without specifying a specific prefix it finds all my dependencies. But when I specify a different prefix it only finds PNG and FreeType... I compiled every dependency like below.

Code: Select all

./configure --enable-static --disable-shared prefix="/prefix/"
And I compiled ImageMagick with

Code: Select all

../configure --enable-static --disable-shared  --without-perl --without-magick-plus-plus --disable-installed --disable-dependency-tracking --without-frozenpaths prefix="/prefix/"
With the hope of having a static library of ImageMagick including tiff, jpeg, png, freetype, jasper and ghostscript.

This all works fine when compiling it to the normal location but not when I set a prefix.

What can I do about it? Do I need additional LDFLAGS or CFLAGS or something like that?
Note that it doesn't give me an error, after ./configure I just see that the dependencies aren't found.


Thanks in advance
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dependencies not found (OS X)

Post by magick »

You can set LDFLAGS and CFLAGS or put all the dependencies in the toplevel ImageMagick folder (as jpeg, png, tiff, etc.) and add --enable-delegate-build to your configure command line.
JamesGreen

Re: Dependencies not found (OS X)

Post by JamesGreen »

Thanks for your quick reply!
as jpeg, png, tiff, etc.
May I ask what those names are for FreeType, GhostScript and Jasper or did I overlook this in the documentation?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dependencies not found (OS X)

Post by magick »

See configure.ac. Here is what we look for:
  • for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
JamesGreen

Re: Dependencies not found (OS X)

Post by JamesGreen »

Okay thanks! going to test it next thing tomorrow..
Post Reply