1If you encounter problems while compiling XCRYSDEN on MAC OSX below
2notes from Mike Ford might be useful.
3
4Tone Kokalj, Fri Apr  2 13:19:27 CEST 2004
5
6
7
8Compiling XCRYSDEN for MacOS X v10.2
9************************************
10Mike Ford 12/03/04
11University of Technology, Sydney
12
13
141) Set up the Make.sys file
15---------------------------
16
17Have to use COMPILE_TCLTK=no and COMPILE_MESA=no option and compile
18MESA-4.0, tcl8.4 and tk8.4 seperately.
19
20Use the g77 and gcc compilers.
21
22Compile using XDarwin v1.1.0.1 Xwindow libraries, not the Apple X11
23server libraries.
24
25The program will still run under the Apple X11 server (I have window
26servers installed, one in the directory /usr/X11R6, the other in
27/usr/X11R6-darwin).
28
29NOTE: In the following it is assumed that the top installed directory
30is /applications/XCrySDen-B1.0s
31
32
332) Compile Mesa-4.O
34-------------------
35Confiugre with makefiles with:
36   $ cd /applications/XCrySDen-B1.0s/external/src/Mesa-4.0 with:
37   $ ./configure --disable-shared \
38                 --prefix=/applications/XCrySDen-B1.0s/external \
39                 --x-libraries=/usr/X11R6-xdarwin/lib \
40                 --x-includes=/usr/X11R6-xdarwin/include \
41                 --disable-3dnow
42
43In the file
44/applications/XCrySDen-B1.0s-all/external/src/Mesa-4.0/si-glu/libtess/memalloc.h
45replace '#include <malloc.h>' with '#include <stdlib.h>'
46
47In the file
48/applications/XCrySDen-B1.0s-all/external/src/Mesa-4.0/libtool change
49'build_old_libs=no' to 'build_old_libs=yes'
50
51Compile with:
52   $ make install
53
54
553) Compile tcl8.3.3
56-------------------
57Configure makefiles with:
58   $ cd /applications/XCrySDen-b1.0s/external/src/tcl8.3.3/unix
59   $ ./configure --disable-shared \
60                 --prefix=/applications/XCrySDen-B1.0s/external \
61                 --x-libraries=/usr/X11R6-xdarwin/lib \
62                 --x-includes=/usr/X11R6-xdarwin/include \
63
64Compile with:
65   $ make install
66
67
684) Compile tk8.3.3
69------------------
70Configure makefiles with:
71   $ cd /applications/XCrySDen-b1.0s/external/src/tk8.3.3/unix
72   $ ./configure --disable-shared \
73                 --prefix=/applications/XCrySDen-B1.0s/external \
74                 --x-libraries=/usr/X11R6-xdarwin/lib \
75                 --x-includes=/usr/X11R6-xdarwin/include \
76
77Compile with:
78   $ make install
79
80
815) Compile XCrySDen
82-------------------
83
84   $ cd /applications/XCrySDen-B1.0s-all
85   $ make all
86
87