Page 1 of 1

Dependencies not found (OS X)

Posted: 2010-01-07T08:51:33-07:00
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

Re: Dependencies not found (OS X)

Posted: 2010-01-07T10:45:38-07:00
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.

Re: Dependencies not found (OS X)

Posted: 2010-01-07T12:32:13-07:00
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?

Re: Dependencies not found (OS X)

Posted: 2010-01-07T12:44:06-07:00
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

Re: Dependencies not found (OS X)

Posted: 2010-01-07T12:46:24-07:00
by JamesGreen
Okay thanks! going to test it next thing tomorrow..