1 | Provided by: Matt Cottrell |
---|
2 | revised Sept 30, 2009 |
---|
3 | |
---|
4 | removed unused xmkmf (ralf; Jul 2013) |
---|
5 | |
---|
6 | If you are looking for an easy way to install ARB on OS X, then see the instructions in the file |
---|
7 | ARB_OS_X_MacPorts.txt. There you will find instructions for installing ARB, including all of the |
---|
8 | necessary dependencies using MacPorts the easy way. |
---|
9 | |
---|
10 | Continue with the steps below only if you want to build ARB and its dependencies by hand the hard way. |
---|
11 | ______________________________________________________________________________________________________ |
---|
12 | |
---|
13 | Building 64-bit ARB on Mac OS X (Snow Leopard 10.6) |
---|
14 | |
---|
15 | Warning - installing the 64-bit version of ARB will break ARB installed by Fink! |
---|
16 | |
---|
17 | The cshrc shell is indicated by the % prompt. |
---|
18 | Downloads are placed on the Desktop and final installation will be in /usr/local/arb |
---|
19 | ------------------------------------------------------------------------------------ |
---|
20 | |
---|
21 | - If ARB was previously installed using Fink you must first remove ARB and then skip to step (XQuartz). |
---|
22 | |
---|
23 | % fink remove arb |
---|
24 | |
---|
25 | - If arb is not installed by fink start by installing the Developer Tools from the Leopard disc. |
---|
26 | |
---|
27 | Use the Mac OS X Snow Leopard DVD to install the developer tools |
---|
28 | |
---|
29 | - Install Fink |
---|
30 | |
---|
31 | Get it from (http://www.finkproject.org/) |
---|
32 | These instructions assume that you installed the source distribution. |
---|
33 | |
---|
34 | - Install sed, lynx and dos2unix using Fink |
---|
35 | |
---|
36 | %fink install sed lynx dos2unix libsablot |
---|
37 | |
---|
38 | Note: The BSD flavor of sed provided with OS X will not work with ARB. You need the GNU sed provided by Fink. |
---|
39 | There are other ways to install GNU sed, lynx and dos2unix, but using Fink is probably the easiest. |
---|
40 | |
---|
41 | - Install the latest version of XQuartz |
---|
42 | |
---|
43 | Get it from (http://xquartz.macosforge.org/trac/wiki/Releases) |
---|
44 | |
---|
45 | Use the downloaded X11-*.*.*.dmg to install. |
---|
46 | |
---|
47 | - Download and install Open Motif from the IST web site |
---|
48 | |
---|
49 | Get it from (http://www.ist-inc.com/DOWNLOADS/motif_download.html) |
---|
50 | Download the version for Mac OS X 10.5 Universal (Leopard) |
---|
51 | Use the downloaded openmotif-compat-2.1.32_IST.macosx10.5.dmg to install |
---|
52 | |
---|
53 | - Download and install freeglut |
---|
54 | |
---|
55 | Get it from (http://freeglut.sourceforge.net/) |
---|
56 | |
---|
57 | % cd freeglut-2.4.0 |
---|
58 | % env CC=gcc\ -arch\ x86_64 LDFLAGS=-L/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/ CPPFLAGS=-I/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/ ./configure --disable-warnings |
---|
59 | % make |
---|
60 | % sudo make install |
---|
61 | |
---|
62 | - Download the OpenGL Extension Wrangler Library (GLEW) |
---|
63 | |
---|
64 | Get it from (http://glew.sourceforge.net/install.html) |
---|
65 | |
---|
66 | % cd glew |
---|
67 | % dos2unix Makefile |
---|
68 | % dos2unix config/config.guess |
---|
69 | % chmod a+x config/config.guess |
---|
70 | % env LD=-arch\ x86_64 CFLAGS.EXTRA=-arch\ x86_64 make |
---|
71 | % sudo env GLEW_DEST=/usr/local make install |
---|
72 | |
---|
73 | - Build and install 64-bit libGLw provided by mesa |
---|
74 | |
---|
75 | Get it from (http://www.mesa3d.org/) |
---|
76 | Click on the Source Forge link and and then download MesaLib |
---|
77 | |
---|
78 | % cd Mesa-7.2 |
---|
79 | % env CFLAGS=-arch\ x86_64 CXXFLAGS=-arch\ x86_64 CPPFLAGS=-I/usr/OpenMotif/include/ LDFLAGS=-L/usr/OpenMotif/lib ./configure --enable-motif |
---|
80 | % make |
---|
81 | % sudo make install |
---|
82 | % cd src/glw |
---|
83 | % make |
---|
84 | % sudo make install |
---|
85 | |
---|
86 | - Build and install 64-bit tiff (v3.8.2) |
---|
87 | |
---|
88 | Get it from (http://dl.maptools.org/dl/libtiff/) |
---|
89 | |
---|
90 | % cd tiff-3.8.2 |
---|
91 | % env CFLAGS=-arch\ x86_64 CXXFLAGS=-arch\ x86_64 ./configure |
---|
92 | % make |
---|
93 | % sudo make install |
---|
94 | |
---|
95 | - Download the latest ARB build |
---|
96 | |
---|
97 | % mkdir ARB |
---|
98 | % cd ARB |
---|
99 | |
---|
100 | In your browser get arb from http://download.arb-home.de/release/latest/ |
---|
101 | |
---|
102 | % tar xzvf arbsrc.tgz |
---|
103 | |
---|
104 | or check out from svn |
---|
105 | |
---|
106 | % svn co http://vc.arb-home.de/readonly/branches/stable ARB |
---|
107 | |
---|
108 | Create and edit config.makefile like this: |
---|
109 | |
---|
110 | % cp config.makefile.template config.makefile |
---|
111 | |
---|
112 | Change these lines in config.makefile |
---|
113 | |
---|
114 | From: ARB_64 := 0# compile 64bit ARB version (still very buggy!) |
---|
115 | To: ARB_64 := 1# compile 64bit ARB version (still very buggy!) |
---|
116 | |
---|
117 | From: MACH := LINUX# Linux g++ and gcc |
---|
118 | To: #MACH := LINUX# Linux g++ and gcc |
---|
119 | |
---|
120 | From: LINUX := 1 |
---|
121 | To: #LINUX := 1 |
---|
122 | |
---|
123 | From: #MACH := DARWIN# |
---|
124 | To: MACH := DARWIN# |
---|
125 | |
---|
126 | From: #DARWIN := 1 |
---|
127 | To: DARWIN := 1 |
---|
128 | |
---|
129 | Prepare by setting the ARBHOME and PATH environment variables |
---|
130 | |
---|
131 | % env ARBHOME=/Users/<your_user_name>/Desktop/ARB |
---|
132 | % env PATH=$PATH:/Users/<your_user_name>/Desktop/ARB |
---|
133 | |
---|
134 | Build ARB |
---|
135 | |
---|
136 | % make all |
---|
137 | |
---|
138 | After the compiler is finished you will be prompted to start ARB by typing "arb". |
---|
139 | Give it a try now, but then quit ARB and continue the installation steps below. |
---|
140 | |
---|
141 | - Install arb to /usr/local/arb |
---|
142 | |
---|
143 | % sudo mkdir -p /usr/local/arb |
---|
144 | % sudo cp -R bin /usr/local/arb |
---|
145 | % sudo cp -R lib /usr/local/arb |
---|
146 | % sudo cp -R GDEHELP /usr/local/arb |
---|
147 | % sudo cp -R PERL_SCRIPTS /usr/local/arb |
---|
148 | % sudo cp demo.arb /usr/local/arb |
---|
149 | % sudo cp -r SH /usr/local/arb |
---|
150 | |
---|
151 | - Fix the permissions on the pt_server directory |
---|
152 | |
---|
153 | % sudo chmod a+w /usr/local/arb/lib/pts |
---|
154 | |
---|
155 | - Edit your .cshrc file |
---|
156 | |
---|
157 | Add these lines |
---|
158 | |
---|
159 | setenv ARBHOME /usr/local/bin |
---|
160 | setenv PATH $PATH:/usr/local/bin |
---|
161 | |
---|
162 | - Update the loaded environment variables and path |
---|
163 | |
---|
164 | % source ~/.cshrc |
---|
165 | % rehash |
---|
166 | |
---|
167 | - Start ARB |
---|
168 | |
---|
169 | % arb |
---|
170 | |
---|
171 | end |
---|