]> icculus.org git repositories - btb/d2x.git/blob - mingw32.txt
change __ENV_WINDOWS__ to __WINDOWS__, __ENV_MSDOS__ to __MSDOS__
[btb/d2x.git] / mingw32.txt
1 Instructions for building D2X for MinGW32\r
2 -----------------------------------------\r
3 \r
4 Using Cygwin\r
5 ------------\r
6 First you will need SDL.  Download the development libraries for\r
7 Win32/mingw32 from http://www.libsdl.org/ Currently, it is\r
8 SDL-devel-1.2.2-mingw32.tar.gz.  Inside this file, you will find\r
9 another tar.gz, called i386-mingw32msvc.tar.gz.  This should be\r
10 untarred under /usr/local/cross-tools:\r
11 mkdir /usr/local/cross-tools\r
12 cd /usr/local/cross-tools\r
13 tar zxf /path/to/i386-mingw32msvc.tar.gz\r
14 \r
15 Then you should place SDL.dll and sdl-config somewhere in your PATH.\r
16 I recommend /usr/local/bin:\r
17 cp /usr/local/cross-tools/i386-mingw32msvc/lib/SDL.dll /usr/local/bin\r
18 cp /usr/local/cross-tools/i386-mingw32msvc/bin/sdl-config /usr/local/bin\r
19 \r
20 If you need to run autogen.sh (e.g. to rebuild the configure scripts,\r
21 or to build from cvs) you have to have the ACLOCAL_FLAGS variable set.\r
22 for example:\r
23 export ACLOCAL_FLAGS=/usr/local/cross-tools/i386-mingw32msvc/share/aclocal\r
24 \r
25 You should also install NASM, for compiling assembler files.  Download\r
26 it from http://www.web-sites.co.uk/nasm/where.html and place nasmw.exe\r
27 somewhere in your path (e.g. /usr/local/bin):\r
28 unzip nasm-0.98-win32.zip\r
29 mv nasmw.exe /usr/local/bin\r
30 \r
31 Now you can configure and build d2x as normal.\r
32 \r
33 \r
34 Using MinGW32\r
35 -------------\r
36 to be added\r
37 \r
38 \r
39 Using Linux\r
40 -----------\r
41 to be added\r
42 \r
43 \r
44 -Bradley Bell <bradleyb@u.washington.edu>\r