Page 1 of 1

Building/Compiling ImageMagick-6.5.4-10 on Macintosh 10.5

Posted: 2009-08-13T05:04:31-07:00
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.

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

Posted: 2009-08-13T05:32:21-07:00
by vishvesh
Finally got it to compile,

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

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

Posted: 2009-08-13T20:19:54-07:00
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.