I've been working with Kamal on this problem, and have tried a number of different ways to get this working, to no avail. I've tried the build on a number of different Macs, and the errors appear to be the same regardless of operating system version or processor type (Work machine is a PowerPC, my laptop is Intel, fails the same way on both). Here's the process I've been following:
curl -O
http://www.imagemagick.org/download/del ... -6b.tar.gz
curl -O
http://www.imagemagick.org/download/del ... 8.2.tar.gz
Download ImageMagick-6.4.9-4.tar.gz from a mirror
tar xvzf ImageMagic-6.4.9-4.tar.gz
tar xvzf libjpeg-6b.tar.gz
tar xvzf tiff-3.8.2.tar.gz
mv libjpeg-6b ImageMagick-6.4.9-4/jpeg
mv tiff-3.8.2 ImageMagick-6.4.9-4/tiff
cd ImageMagic-6.4.9-4/jpeg
./configure --disable-shared
make
cd ../tiff
./configure --disable-shared
make
cd ..
./configure --disable-shared --enable-delegate-build --enable-osx-universal-binary --disable-dependency-tracking --prefix=/ImageMagic-6.4.9-4
Here is the result of the configure:
Code: Select all
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.
Host system type: i386-apple-darwin9.6.0
Build system type: i386-apple-darwin9.6.0
Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=no no
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=no no
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no
Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
result_ghostscript_font_dir='none'
Ghostscript fonts --with-gs-font-dir=default
Ghostscript lib --with-gslib=yes no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes no (failed tests)
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no (failed tests)
Windows fonts --with-windows-font-dir=
WMF --with-wmf=no no
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes
X11 Configuration:
X_CFLAGS = -I/usr/X11/include
X_PRE_LIBS = -lSM -lICE
X_LIBS = -L/usr/X11/lib -R/usr/X11/lib
X_EXTRA_LIBS =
Options used to compile and link:
PREFIX = /ImageMagic-6.4.9-4
EXEC-PREFIX = /ImageMagic-6.4.9-4
VERSION = 6.4.9
CC = gcc -std=gnu99
CFLAGS = -g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -D_THREAD_SAFE
MAGICK_CFLAGS = -g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -D_THREAD_SAFE
CPPFLAGS = -I/ImageMagic-6.4.9-4/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -L/Users/garside/Desktop/ImageMagick-6.4.9-4/jpeg/.libs -L/Users/garside/Desktop/ImageMagick-6.4.9-4/jpeg -L/Users/garside/Desktop/ImageMagick-6.4.9-4/magick -L/Users/garside/Desktop/ImageMagick-6.4.9-4/tiff/libtiff/.libs -L/Users/garside/Desktop/ImageMagick-6.4.9-4/tiff/libtiff -L/Users/garside/Desktop/ImageMagick-6.4.9-4/wand -L/usr/X11/lib -R/usr/X11/lib -L/usr/X11/lib -lfreetype -lz -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
MAGICK_LDFLAGS = -L/ImageMagic-6.4.9-4/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -L/Users/garside/Desktop/ImageMagick-6.4.9-4/jpeg/.libs -L/Users/garside/Desktop/ImageMagick-6.4.9-4/jpeg -L/Users/garside/Desktop/ImageMagick-6.4.9-4/magick -L/Users/garside/Desktop/ImageMagick-6.4.9-4/tiff/libtiff/.libs -L/Users/garside/Desktop/ImageMagick-6.4.9-4/tiff/libtiff -L/Users/garside/Desktop/ImageMagick-6.4.9-4/wand -L/usr/X11/lib -R/usr/X11/lib -L/usr/X11/lib -lfreetype -lz -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
LIBS = -lMagickCore -lfreetype -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lpthread
CXX = g++
CXXFLAGS = -g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -D_THREAD_SAFE
The errors which occur on the JPEG delegate library:
Code: Select all
-------------------------------------------------------------
checking for JPEG...
checking jconfig.h usability... yes
checking jconfig.h presence... yes
checking for jconfig.h... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking jmorecfg.h usability... yes
checking jmorecfg.h presence... yes
checking for jmorecfg.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... no
checking for JPEG library is version 6b or later... yes
checking if JPEG package is complete... no -- some components failed test
-------------------------------------------------------------
And for TIFF
Code: Select all
-------------------------------------------------------------
checking for TIFF...
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFOpen in -ltiff... no
checking for TIFFClientOpen in -ltiff... no
checking for TIFFIsByteSwapped in -ltiff... no
checking for TIFFReadRGBATile in -ltiff... no
checking for TIFFReadRGBAStrip in -ltiff... no
checking if TIFF package is complete... no -- some components failed test
-------------------------------------------------------------
I've tried a number of different ways to compile and configure, I've looked up, tried, and failed duplicating successful results on a number of tutorials, and I'm basically out of ideas, options, and posted solutions. If you've got any idea what the possible cause could be, please let me know. If you've got any alternate solutions, (like if someone has already solved this issue themselves), that'd be awesome, too.
Just to recap, what we're trying to achieve (seems simple enough, but I can't get it to work...)
Compile standalone universal binaries for Mac OS X with delegate support for JPEG and TIFF to redistribute as part of a package to our users. We don't want to need the users to install a full copy of ImageMagick on their machine, as we only really need the functionality of the Convert binary.