Difference between revisions of "Compiling using Code::Blocks"

From OdaWiki
Line 7: Line 7:
 
==Step 1: Getting Code::Blocks==
 
==Step 1: Getting Code::Blocks==
  
You can download Code::Blocks from its website here: [http://www.codeblocks.org/ Code::Blocks].
+
You can download Code::Blocks from its website here: [http://www.codeblocks.org/ 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.
  
'''Note: Be sure to get the latest nightly build, as this is the one that works with the current project files.'''
+
==Step 2: Getting MinGW==
  
==Step 2: Required Libraries ==
+
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://prdownloads.sourceforge.net/mingw/ this website].  The package you're looking for, as of this writing is MinGW-5.0.3.exe, but please check to see if a newer verison is avalable.  When installing, you might as well install it all, it's not that big.
 +
 
 +
==Step 3: Required Libraries ==
  
 
For ODAMEX to successfully compile, you must obtain some libraries for it, which are:
 
For ODAMEX to successfully compile, you must obtain some libraries for it, which are:
Line 20: Line 24:
 
And unzip these libraries into your [http://www.mingw.org MinGW] directory
 
And unzip these libraries into your [http://www.mingw.org MinGW] directory
  
==Step 3: Getting the source code for ODAMEX==
+
==Step 4: Getting the source code for ODAMEX==
  
 
This can be obtained through the [http://www.odamex.net website] or from the [[SVN]] repository  
 
This can be obtained through the [http://www.odamex.net website] or from the [[SVN]] repository  
 
using  [http://tortoisesvn.tigris.org/ tortoisesvn].
 
using  [http://tortoisesvn.tigris.org/ tortoisesvn].
  
==Step 4: Compiling the ODAMEX source code==
+
==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)
 
After you've extracted the source code to a directory, open the workspace file (currently named odamex.workspace)

Revision as of 21:00, 23 September 2006

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.

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: Getting MinGW

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. The package you're looking for, as of this writing is MinGW-5.0.3.exe, but please check to see if a newer verison is avalable. When installing, you might as well install it all, it's not that big.

Step 3: Required Libraries

For ODAMEX to successfully compile, you must obtain some libraries for it, which are:

  • SDL development libraries
  • SDL_mixer development libraries

And unzip these libraries into your MinGW directory

Step 4: Getting the source code for ODAMEX

This can be obtained through the website or from the SVN repository using tortoisesvn.

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

Conclusion

Once its all built (and no errors have occurred), you should find some binary files located in the bin directory and these are ready to use.

External Links