Re: ImageMagick on OSX?
Re: ImageMagick on OSX?
- Subject: Re: ImageMagick on OSX?
- From: Cyril Godefroy <email@hidden>
- Date: Wed, 24 Dec 2003 11:26:35 +0100
In case you'd like to build Image Magick on OS X by yourself, and not
use Fink for whatever good reason, here is the road I've taken which
has led me to a succesful build of HMagick 5.5.6 with IMageMagick 5.5.7
on both 10.2 and 10.3. On thing though: this installs a lot of
libraries etc in a special area of the usual tree. Everything goes into
/usr/local/imagick. If you don't need that, use /usr/local as the
destination.
Have fun,
Cyril
Topic
- Install Image magick et Jmagick 5.5.7
- Delegates
- bzlib
- Read and write bzip compresed MIFF images
- http://sources.redhat.com/bzip2/index.html
- make
- make install PREFIX=/usr/local/imagick
- dcraw
- Raw image from digital cameras
- http://www.cybercom.net/~dcoffin/dcraw/
- gcc -o dcraw -O3 dcraw.c -lm
- FreeType 2.0
- Annotate with truetype
- ./configure --prefix=/usr
- make && sudo make install
- exif
- read info from camera generated pictures
-
http://prdownloads.sourceforge.net/libexif/libexif-
0.5.12.tar.gz?download
- ./configure --prefix=/usr/local/imagick
- make && sudo make install
- jpegv6
- read and write jpeg v1 file format
- curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
- ./configure --prefix=/usr/local/imagick && make && sudo make
install && sudo make install-lib
- sudo ranlib /usr/local/imagick/lib/*.a
- zlib
- Already installed
- Mandatory fo png for example
- http://www.gzip.org/zlib/
- ./configure && make test && make install prefix=/usr/local/imagick
- png library
- read png
- http://www.libpng.org/pub/png/pngcode.html
- curl -O http://www.libpng.org/pub/png/src/libpng-1.2.5.tar.gz
- gnutar xzf libpng-1.2.5.tar.gz
- cd libpng-1.2.5
- cp scripts/makefile.macosx ./Makefile
- Edit Makefile
- Change ZLIBLIB=../lib to ZLIBLIB=/usr/lib
- Change ZLIBINC=../lib to ZLIBINC=/usr/include
- Change the line
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -current_version $(PNGVER)
to
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz
- make
- sudo make install && sudo ranlib .....
- tiff
- curl -O ftp://ftp.remotesensing.org/pub/libtiff/tiff-v3.5.7.tar.gz
- gnutar zxf tiff-v3.5.7.tar.gz
- cd tiff-v3.5.7
- cp /usr/share/libtool/config.guess .
- cp /usr/share/libtool/config.sub .
- setenv LDFLAGS -flat_namespace
- setenv CPPFLAGS -no-cpp-precomp
- ./configure --prefix=/usr/local/imagick
- libxml2
- http://xmlsoft.org/
- tar xzf libxml2-2.6.0.tar.gz
- ./configure --prefix=/usr/local/imagick
- make && sudo make install
- libwmf
- curl -O
http://belnet.dl.sourceforge.net/sourceforge/wvware/libwmf-0.2.8.tar.gz
- tar xzf libwmf-0.2.8.tar.gz
- cd libwmf-0.2.8
- ./configure --prefix=/usr/local/imagick --without-expat
--with-libxml2=/usr/local/imagick --with-freetype=/usr/local/imagick
--with-png=/usr/local/imagick
- make && sudo make install
- ghostscript
-
- ImageMagick 5.5.7
- ./configure --prefix=/usr/local/imagick --enable-delegate-build
LDFLAGS='-L/usr/local/imagick/lib'
CPPFLAGS='-I/usr/local/imagick/include' --with-perl=no
--with-magick-plus-plus=no
- make &&sudo make install
- Jmagick 5.5.6b
- ./configure --with-java-home=/Library/Java/Home
--with-java-includes=/System/Library/Frameworks/JavaVM.framework/
Versions/1.3.1/Headers/ --with-magick-home=/usr/local/imagick
--with-magick-lib-dir=/usr/local/imagick/lib/ImageMagick-5.5.7
--with-magick-inc-dir=/usr/local/imagick/include/magick
- make
- mkdir objects
- cd objects/
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/magick_DrawInfo.c
-fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/magick_ImageInfo.c
-fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/magick_Magick.c
-fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/
magick_MagickImage.c -fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/magick_MagickInfo.c
-fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/
magick_MontageInfo.c -fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/
magick_PixelPacket.c -fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c
/Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/
magick_QuantizeInfo.c -fno-common -DPIC
- cc -I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -c /Users/cyril/ImageMagick/JMagick-5.5.6-0/src/magick/jmagick.c
-fno-common -DPIC
-
- cc -bundle
-I/Users/cyril/ImageMagick/JMagick-5.5.6-0/generated/magick
-I/usr/local/include
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/
-I/usr/local/imagick/include -I/usr/local/imagick/include -D_REENTRANT
-INONE -framework JavaVM -fno-common -DPIC -L/usr/local/imagick/lib
-L/usr/local/imagick/lib -lMagick -ljpeg -ltiff -o libJMagick.jnilib *.o
- Oh c'est beau!
Has anyone else succesfully gotten the ImageMagick command line utils
(with GIF and JPG support) working on OSX, who could give me some
tips? Did you use the pre-built binaries or did you compile it
yourself? With the pre-built binaries.... I'm not sure what's going
on, but they seem to be requiring some libraries that don't actually
come with OSX perhaps.
--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.