This article or reference needs to be cleaned up. You can help OdaWiki by cleaning it up. |
Contents
MinGW and MSYS
Ensure you have the proper files
Get the following MinGW files:
- gcc-core-3.4.2-20040916-1.tar.gz
- gcc-g++-3.4.2-20040916-1.tar.gz
- mingw-runtime-3.9.tar.gz
- w32api-3.6.tar.gz
- binutils-2.15.91-20040904-1.tar.gz
- mingw32-make-3.80.0-3.exe
- gdb-5.2.1-1.exe
In addition, you will need the latest version of MSYS:
NOTE: Use a program like 7-zip to extract tar.gz files.
Unpack Files
- Untar ALL MinGW files from the archives you just downloaded into a single directory, then right click on My Computer->Properties->Go to Advanced Tab->Environment Variables->System Variables and scroll down till you find the Path variable, click edit and add the following line:
;drive:\mingwdir\bin
drive:\ being the drive you installed mingw to (eg c:\)
mingwdir is self-explanatory (eg mingw\)
NOTE: Include the semi-colon at the start, or else it won't work.
NOTE: In your mingw/bin dir, you should see a file named i386-mingw32-msvc-sdl-config, rename this to sdl-config.
Download SDL Packages
- Download the following SDL packages and untar/zip them to your MinGW dir.
Download MSYS
- You will need MSYS. You will need to add an environment variable to point to its bin dir aswell.
NOTE: You need MSYS, because gnu make and windows mkdir don't get on well together, not because you need sdl-config.
Create a Directory for Code
- Create a new dir somewhere, right click inside it and click SVN Checkout, type in svn://odamex.net:2000/ in the url field and click OK, wait until it says Completed in the Action column of the window.
Compile with Makefile
- Open a command prompt and go to your odamex trunk dir and type: make -f Makefile.win all
HINT: To get help on the makefile, type make -f Makefile.win help