This page is a stub, please help the Sauerbraten Wiki by expanding it.
The following are methods to compile Sauerbraten for the three main target OSes (Windows, Linux and Mac OS X) without any commercial software.



Windows

To compile Sauerbraten under Windows, download Code::Blocks and install it. After installation has completed, load up Code::Blocks, go to File > Open. Navigate to "sauerbraten/src/mingw" and select "sauerbraten.cbp". Once the project has loaded, go to Build > Build, and wait patiently for sauerbraten to compile. Once it has finished compiling, you will find the EXE in "sauerbraten/bin" under the name "sauerbraten-mingw.exe". Simply edit your .bat launcher to use this executable instead, and enjoy.
MeatROme says: I've not tried CodeBlocks on Windows myself, but I used to handle it via MinGW/msys manually .. as far as I know the MinGW that ships with CodeBlocks has serious issues (especially when compiling sauerbraten).
Ultran00b says: Check here for a more up to date version of MinGW that should be much less buggy.


An alternative method for compiling under Windows is by using Microsoft's Visual C++ 2008 Express Edition. This method is slightly more painful than compiling with Code::Blocks and MinGW, but if you are more familiar with the VC++ line of IDE's, than it can be worth it. To start, navigate to sauerbraten\src\vcpp, double click on sauerbraten.sln, and click through the process of converting the solution to the latest format. Now, you should have the solution open in front of you. Minimize it, (you should still have sauerbraten\src\vcpp open) and open sauerbraten.rc in notepad or your preferred text editor. The top line should say "#include "afxres.h". Now, this header file is deprecated, so change it to the more recent "winresrc.h". (Note that you should have the Platform SDK installed, which you probably do if you're developing with VC++; you should have the include directories set up, because that's where the header is.) Save and close. One more thing to go: Right click on sauerbraten in the solution explorer, go to properties, expand Linker, go to General, and change ..\..\bin\sauerbraten.exe to something like ..\..\bin\sauerbraten-vcpp.exe, since we don't want to replace the vanilla Sauerbraten executable. Hit OK. Now you're ready! Hit Build->Build Solution, and wait patiently for it to compile. Like above, edit your .bat launcher (or create a new one) to use the executable you compiled. Have fun!



Linux

Provided they have GCC installed (package 'build-essential' on a lot of distributions) and the required SDL development libraries, the users of linux need only perform the usual make-dance.
Change into the directory "sauerbraten/src" (in a terminal) and then run
make clean
make
make install

Of course - after this - they need to make sure the run the bin_unix/native_* binaries - not the bin_unix/linux_*!



Mac OS X

Todo..