]> icculus.org git repositories - btb/d2x.git/blob - README
use standard fgets for non-archive files
[btb/d2x.git] / README
1 ===========
2     D2X
3 ===========
4
5 http://icculus.org/d2x
6
7
8 Useful Links:
9 =============
10 Nasm: http://nasm.sourceforge.net
11 SDL:  http://www.libsdl.org
12
13
14 Linux/Unix:
15 ===========
16
17 Required tools:
18 * GCC 2.95 or higher
19 * SDL 1.1.0 or higher
20 * NASM 0.98 (OPTIONAL but RECOMMENDED for x86)
21 * A thread safe X server.
22 * GNU make is probably required as well.
23
24 Build instructions:
25 Install all of the components above. Next, from the d2x directory:
26
27 ./configure
28         ./configure --help will show you the available options.
29         If you have a 3d graphics card, use --with-opengl
30
31 VPATH builds also work (i.e., you can put the source in one directory
32 and build in another.  Just execute the configure script from the
33 build directory like so:
34 mkdir d2x-build
35 cd d2x-build
36 ../d2x-source/configure
37
38 make
39 make install
40
41 on systems where `make' isn't GNU make, use `gmake' instead.
42
43 see installation.txt for info on where to put your datafiles, etc.
44
45 Known bugs/issues:
46
47 * Serial support doesn't work. (UDP and IPX networking does)
48 * Sound glitches (due to stuff I haven't implemented)
49 * The mouse support is at the same level as it was in d1x (as in, it
50   kind of works) (btb: works pretty good for me.)
51
52
53 Win32:
54 ======
55
56 Required tools:
57 * Cygwin or MinGW + MSys
58 * SDL 1.1.0 or higher
59 * NASM 0.98 (OPTIONAL but RECOMMENDED)
60
61 Note that SDL.dll needs to be in your executable PATH, since that is
62 where windows looks for dlls.
63 I recommend copying or moving it to /usr/local/bin:
64 cp /usr/local/lib/SDL.dll /usr/local/bin
65
66 If you need to run autogen.sh (e.g. to rebuild the configure scripts,
67 or to build from cvs) sdl.m4 will have to be somewhere where aclocal
68 can find it.
69 You can fix this by setting the ACLOCAL_FLAGS variable like this:
70 export ACLOCAL_FLAGS=/usr/local/share/aclocal
71
72 Now you can configure d2x as normal.  i.e.
73 ./configure
74 or
75 ./configure --with-opengl
76
77 For some reason, the Makefiles have a problem with not always putting the
78 .exe extentions where they need to be.  So you may have to run make
79 twice, like so:
80 make && make d2x-sdl.exe
81 or
82 make && make d2x-gl.exe
83
84 Then just copy your executable and SDL.dll into the descent2 directory.
85
86
87 MS-DOS:
88 =======
89
90 Dos support isn't a high priority right now, so things may be a little
91 messed up.
92
93 Required tools:
94 * DJGPP v2
95 The following DJGPP packages are ALL REQUIRED (newer versions are ok)!
96 v2/
97 djdev203.zip
98 v2gnu/
99 bnu281b.zip gcc2952b.zip mak3781b.zip bsh1147b.zip sed302b.zip
100 m4-14b.zip acnf213b.zip gwk304b.zip txt20b.zip grep22b.zip dif272b.zip
101 So many packages are needed to support the autoconf build system that d2x
102 uses. (Sorry! =)
103 * NASM v0.98 or better is REQUIRED
104
105
106 Build instructions:
107 Install all of the djgpp packages above. Make sure that DJGPP is properly
108 configure (see the DJGPP docs for more information).
109 Make a copy of bash.exe in your djgpp bin/ directory. Call it "sh.exe". This
110 step is VERY IMPORTANT (otherwise all the scripts will fail).
111
112 Now, run the following from the d2x directory:
113 djgpp.bat
114 make
115
116 Hopefully things will work out and the package will build correctly for you.
117
118 Known bugs/issues:
119 * Serial and network support missing.
120 * Sound support missing.
121
122
123 MAC OS X
124 ========
125
126 Install the latest version of apple's developer tools.
127 Compile and install SDL from source: d2x doesn't use Project Builder.
128
129 configure and compile as with other unices.
130
131 Known bugs/issues:
132 * Serial and network support missing
133 * GL version very buggy
134
135
136 Bugs/feedback:
137 ==============
138
139 There are three places to report bugs and give feedback:
140
141 You can get on the descent-source mailing list by sending an email to
142 majordomo@warpcore.org with the body as: "subscribe descent-source
143 <your email address>". Discussions about the source code in general
144 are available here, and is the main list that d2x and d1x, a similar
145 project for descent 1, are discussed on. Patches and questions can be
146 posted there, as well.
147
148 Use Bugzilla. https://bugzilla.icculus.org/
149
150 Contact me directly, btb@icculus.org.  I'll try to get back to you
151 ASAP, depending on real-life concerns =)