Page 1 of 1

Compiling on mac os x

Posted: 2008-01-24T16:37:40-07:00
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?

Re: Compiling on mac os x

Posted: 2008-01-27T14:50:33-07:00
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.