Compiling using Code::Blocks
Overview:
This guide contains information on how to compile Odamex using Code::Blocks
Contents
Download SVN Utility
- Download tortoisesvn and install, then restart.
Download MingW Files
- Get the following MinGW files:
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.
Download CodeBlocks
- Download this Code::Blocks package and install it, select mingw/gcc as your default compiler, close the IDE.
Download SDL Packages
- Download the following SDL packages and untar/zip them to your MinGW dir.
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.
Opening and Compiling the Odamex Workspace
- Open the Odamex.workspace file, wait until all projects are loaded, right click on the project you want to compile and click Activate, then go into the Build menu and click Build.
Result
- If all steps were followed correctly, Code::Blocks should output a binary into the /Bin dir of your odamex svn folder.