Building/Compiling ImageMagick-6.5.4-10 on Macintosh 10.5

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
vishvesh

Building/Compiling ImageMagick-6.5.4-10 on Macintosh 10.5

Post by vishvesh »

Hi all,
I have been trying to build ImageMagick-6.5.4-10 on my mac. I made following changes while building. :D

Code: Select all

 cd /Developer/SDKs/MacOSX10.5.sdk
  ln -s sw /sw   

 export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk/ -arch i386 -I/sw/include/"
 export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk/,-L/sw/lib/"
It build most of the things but gave these warnings among other :?
libtool: link: warning: `/usr/X11R6/lib/libXext.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libSM.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libICE.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libX11.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libXt.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libfreetype.la' seems to be moved
i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libpng.3.0.0.dylib: No such file or directory
make[1]: *** [coders/png.la] Error 1
make: *** [all] Error 2
I tried sudo make install :(
make install-am
CCLD coders/png.la
libtool: link: warning: `/usr/X11R6/lib/libXext.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libSM.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libICE.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libX11.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libXt.la' seems to be moved
libtool: link: warning: `/usr/X11R6/lib/libfreetype.la' seems to be moved
i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libpng.3.0.0.dylib: No such file or directory
make[1]: *** [coders/png.la] Error 1
make: *** [install] Error 2
Can anybody help me out with this issue.

Secondly how easy would it be to make a xcode project for ImageMagick and turn it into a static or dynamic library on Macintosh. Are there two different version of code for Macintosh and windows? Can I follow the pattern provided in the windows version to make a dylib on mac.

Thanks in advance for all the help.

Edit -----
Sorry about posting it in bug section.
Last edited by vishvesh on 2009-08-13T07:06:09-07:00, edited 2 times in total.
vishvesh

Re: Building/Compiling ImageMagick-6.5.4-10 on Macintosh 10.5

Post by vishvesh »

Finally got it to compile,

renamed libpng.dylib to libpng.3.0.0.dylib. Is this the right way of doing things.
vishvesh

Re: Building/Compiling ImageMagick-6.5.4-10 on Macintosh 10.5

Post by vishvesh »

how easy would it be to make a xcode project for ImageMagick and turn it into a static or dynamic library on Macintosh. Are there two different version of code for Macintosh and windows? Can I follow the pattern provided in the windows version to make a dylib on mac.
Post Reply