root / ImageMagick / branches / ImageMagick-6.3.6 / Install-mac.txt

Revision 7647, 1.5 kB (checked in by cristy, 13 months ago)
Line 
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
30i386 -I/sw/include/"
31
32    * Set your LDFLAGS environment variable to:
33
34        export
35LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk/,-L/sw/lib/"
36
37    * Configure ImageMagick:
38
39        ./configure --prefix=/sw --with-quantum-depth=16 \
40          --disable-dependency-tracking --with-x=yes \
41          --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib/ \
42          --without-perl
43
44    * Build ImageMagick:
45
46        make
47
48    * Install ImageMagick:
49
50        sudo make install
51
52    * To test the ImageMagick GUI, start X11 and in a new shell and type:
53
54        display -display :0
55
56
Note: See TracBrowser for help on using the browser.