Compiling Magick++ static on Mac OS 10.5 for Mac OS 10.4
Posted: 2011-02-02T08:58:46-07:00
Hi,
I am trying to generate Magick++ static libraries:
libMagick++.a, libMagickCore.a and libMagickWand.a
And delegates static libraries :
Libpng.a, libjpeg.a, libtiff.a, libz.a, libbz2.a.
Working OS : MacOS 10.5 intel
Target OS : MacOS 10.4 intel
Test 1 :
Configure Options i used (i used the MacOSX10.4u.sdk SDK on 10.5):
./configure --with-quantum-depth=8 --enable-static --disable-shared --disable-dependency-tracking --disable-installed --without-x --without-freetype --without-lcms --with-tiff --with-jpeg --with-zlib --with-bzlib \
CXXFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE" \
LDFLAGS="-L/usr/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386"\
CFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE"
I used similar options with delegates.
Results on 10.5:
Errors when compiling a code sample: unrecognized symbols.
Test 2 :
However, when i remove all delegates :
./configure --with-quantum-depth=8 --enable-static --disable-shared --disable-dependency-tracking --disable-installed --without-x --without-freetype --without-lcms --without-modules --without-tiff --without-jpeg --without-zlib --without-bzlib \
CXXFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE" \
LDFLAGS="-L/usr/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386"\
CFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE"
Results:
It works fine on both 10.5 and 10.4.
Test 3 :
When I use the MacOSX10.5.sdk SDK and run the .configure file to compile ImageMagick and the delegates, it works fine on 10.5.
Test 4 :
I tried to compile the project on 10.4 but i had errors when compiling a sample (The same sample works fine on 10.5):
unrecognized symbols :
__AnimateImage
__DecipherImage
Etc.
Does anybody have any advice to help me compiling ImageMagick and the delegates for Mac OS 10.4?
Any method that works on Mac OS 10.4 OR 10.5 will be great!
Many thanks in advance for your help.
I am trying to generate Magick++ static libraries:
libMagick++.a, libMagickCore.a and libMagickWand.a
And delegates static libraries :
Libpng.a, libjpeg.a, libtiff.a, libz.a, libbz2.a.
Working OS : MacOS 10.5 intel
Target OS : MacOS 10.4 intel
Test 1 :
Configure Options i used (i used the MacOSX10.4u.sdk SDK on 10.5):
./configure --with-quantum-depth=8 --enable-static --disable-shared --disable-dependency-tracking --disable-installed --without-x --without-freetype --without-lcms --with-tiff --with-jpeg --with-zlib --with-bzlib \
CXXFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE" \
LDFLAGS="-L/usr/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386"\
CFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE"
I used similar options with delegates.
Results on 10.5:
Errors when compiling a code sample: unrecognized symbols.
Test 2 :
However, when i remove all delegates :
./configure --with-quantum-depth=8 --enable-static --disable-shared --disable-dependency-tracking --disable-installed --without-x --without-freetype --without-lcms --without-modules --without-tiff --without-jpeg --without-zlib --without-bzlib \
CXXFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE" \
LDFLAGS="-L/usr/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386"\
CFLAGS="-g -O2 -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -D_THREAD_SAFE"
Results:
It works fine on both 10.5 and 10.4.
Test 3 :
When I use the MacOSX10.5.sdk SDK and run the .configure file to compile ImageMagick and the delegates, it works fine on 10.5.
Test 4 :
I tried to compile the project on 10.4 but i had errors when compiling a sample (The same sample works fine on 10.5):
unrecognized symbols :
__AnimateImage
__DecipherImage
Etc.
Does anybody have any advice to help me compiling ImageMagick and the delegates for Mac OS 10.4?
Any method that works on Mac OS 10.4 OR 10.5 will be great!
Many thanks in advance for your help.