Compiling on mac 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
GRMrGecko

Compiling on mac os x

Post by GRMrGecko »

Hello I'm tying to compile on mac os x and i used this configuration

Code: Select all

./configure --enable-shared --disable-dependency-tracking --enable-osx-universal-binary
and I get this message when compiling

Code: Select all

/bin/sh ./libtool --silent --tag=CXX   --mode=link g++  -g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -D_THREAD_SAFE -version-info 10:10:0 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -L/usr/X11/lib -R/usr/X11/lib -L/usr/local/lib -lfreetype -lz -o Magick++/lib/libMagick++.la -rpath /usr/local/lib Magick++/lib/Blob.lo Magick++/lib/BlobRef.lo Magick++/lib/CoderInfo.lo Magick++/lib/Color.lo Magick++/lib/Drawable.lo Magick++/lib/Exception.lo Magick++/lib/Functions.lo Magick++/lib/Geometry.lo Magick++/lib/Image.lo Magick++/lib/ImageRef.lo Magick++/lib/Montage.lo Magick++/lib/Options.lo Magick++/lib/Pixels.lo Magick++/lib/STL.lo Magick++/lib/Thread.lo Magick++/lib/TypeMetric.lo magick/libMagick.la wand/libWand.la 
ld: in /Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/libJPEG.dylib, file is not of required architecture
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccFRacYw.out (No such file or directory)
make[1]: *** [Magick++/lib/libMagick++.la] Error 1
make: *** [all] Error 2
Can you help me?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Compiling on mac os x

Post by magick »

A universal binary requires that all delegates are compiled as a universal binary as well. Either rebuild/reinstall your JPEG library as a universal binary or rebuild ImageMagick without the --enable-osx-universal-binary configure script option.
Post Reply