root/ImageMagick/trunk/Install-mac.txt @ 1

Revision 1, 1.5 KB (checked in by cristy, 3 months ago)


RevLine 
[1]1Mac OS X-specific Build instructions
2
3Perform these steps as an administrator or with the sudo command:
4
5    * Install Fink. The default setup creates a /sw folder on your main hard
6    * drive. Make sure /sw/bin is in your path.
7    * Install the latest Xcode from Apple.
8    * Create a symbolic link in /Developer/SDKs/MacOSX10.4u.sdk/ to /sw:
9
10        cd /Developer/SDKs/MacOSX10.4u.sdk
11        ln -s sw /sw
12
13    * Use Fink, or FinkCommander to install any delegate libraries you
14    * require, for example:
15
16        fink install libjpeg
17
18As a regular user or administrator:
19
20    * Download the ImageMagick source distribution.
21    * Unpack and change into the top-level ImageMagick directory:
22
23        tar xvfz ImageMagick-6.3.3-0.tar.gz
24        cd ImageMagick-6.3.3
25
26    * Choose an architecture and set your CFLAGS environment variable. Here we
27    * set CFLAGS for an Intel build:
28
29        export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk/ -arch i386 -I/sw/include/"
30
31    * Set your LDFLAGS environment variable to:
32
33        export
34LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk/,-L/sw/lib/"
35
36    * Configure ImageMagick:
37
38        ./configure --prefix=/sw --with-quantum-depth=16 \
39          --disable-dependency-tracking --with-x=yes \
40          --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib \
41          --without-perl
42
43    * Build ImageMagick:
44
45        make
46
47    * Install ImageMagick:
48
49        sudo make install
50
51    * To test the ImageMagick GUI, start X11 and in a new shell and type:
52
53        display -display :0
54
55
Note: See TracBrowser for help on using the browser.