Difference between revisions of "Compiling using Code::Blocks"
(Revert. Whoops, had the MSYS and Codeblocks windows open at the same time. =P) |
(→Windows) |
||
Line 14: | Line 14: | ||
This step is only required if you are using the Code::Blocks nightly builds. Once an official Code::Blocks package is released (rc3 or 1.0), MinGW will be included with Code::Blocks and you can skip this step. | This step is only required if you are using the Code::Blocks nightly builds. Once an official Code::Blocks package is released (rc3 or 1.0), MinGW will be included with Code::Blocks and you can skip this step. | ||
− | You need the latest version of MinGW from [http:// | + | You need the latest version of MinGW from [http://sourceforge.net/project/showfiles.php?group_id=2435 this website]. You need the latest stable versions of the following packages... |
* mingw-runtime | * mingw-runtime | ||
* w32api | * w32api | ||
* binutils | * binutils | ||
− | * gcc | + | * gcc 3 (gcc-core and gcc-g++) |
− | + | ||
Download all of them and extract them to C:\mingw. If you're using Windows and don't have an archiver capable of handling tar.gz files, stop living in the stone age and download [http://www.7-zip.org/ 7-Zip]. If you are compiling ODAMEX for the purpose of debugging, grab gdb as well. | Download all of them and extract them to C:\mingw. If you're using Windows and don't have an archiver capable of handling tar.gz files, stop living in the stone age and download [http://www.7-zip.org/ 7-Zip]. If you are compiling ODAMEX for the purpose of debugging, grab gdb as well. |
Revision as of 02:21, 2 September 2007
Overview:
The ODAMEX Source package comes with a variety of project and workspace files.
This tutorial will show you how to build ODAMEX using the Code::Blocks IDE.
Contents
Step 1: Getting Code::Blocks
You can download Code::Blocks from its website here: Code::Blocks. Be sure to get the 'latest nightly build, and NOT Release Canadate 2 as this is the one that works with the current project files.
Step 2: Setting up the compiler
Windows
This step is only required if you are using the Code::Blocks nightly builds. Once an official Code::Blocks package is released (rc3 or 1.0), MinGW will be included with Code::Blocks and you can skip this step.
You need the latest version of MinGW from this website. You need the latest stable versions of the following packages...
- mingw-runtime
- w32api
- binutils
- gcc 3 (gcc-core and gcc-g++)
Download all of them and extract them to C:\mingw. If you're using Windows and don't have an archiver capable of handling tar.gz files, stop living in the stone age and download 7-Zip. If you are compiling ODAMEX for the purpose of debugging, grab gdb as well.
Linux
Chances are your linux installation already has all the necessary programs. If not, refer to your individual distribution's installation methods for installing gcc, gnu make and their appropriate libraries.
Step 3: Required Libraries
For ODAMEX to successfully compile, you must obtain some libraries for it, which are:
Windows
Copy the include and lib folders from the archives and paste them into your C:\MinGW directory.
Linux
Refer to your individual distribution's installation methods for installing the SDL and SDL_Mixer development libraries.
Step 4: Getting the source code for ODAMEX
The source code can be obtained through the website or from the SVN repository using a SVN client.
Step 5: Compiling the ODAMEX source code
After you've extracted the source code to a directory, open the workspace file (currently named odamex.workspace) and go to the Build menu and click Rebuild workspace
Step 6: Obtaining the runtime libraries
Once its all built (and no errors have occurred), you should find some binary files located in the bin directory. The only thing that you're likely missing is the SDL and SDL_mixer runtime libraries. Download the appropriate library for your system from here and here. Also, make sure and copy odamex.wad to the bin directory as well.