Difference between revisions of "Compiling using GCC"

From OdaWiki
(GNU/Linux)
(GNU/Linux)
Line 1: Line 1:
 
== GNU/Linux ==
 
== GNU/Linux ==
  
1) Either download the [http://odamex.net/ latest source] or get a dev build using (must have [[svn|subversion]] installed!):
+
=== Get the source ===
 +
You can either download a stable source package, or risk using the bleeding edge svn code.
 +
 
 +
==== Download ====
 +
Download the [http://odamex.net/ latest source]
 +
Untar the archive somewhere:
 +
 
 +
<code>tar -xjf odamex_build.tar.bz2</code>
 +
<code>cd odamex_build</code>
 +
 
 +
==== SVN ====
 +
Get a dev build using (must have [[svn|subversion]] installed!):
  
 
<code>svn co svn://odamex.net</code>
 
<code>svn co svn://odamex.net</code>
  
2) Untar the archive somewhere or go into your odamex svn trunk dir and type: make
+
=== Build ===
 +
 
 +
In the source directory, use the make command:
 +
 
 +
<code>make</code>
 +
 
 +
Binaries should appear in the bin dir after a successful compile: odamex, odasrv, odamaster
  
3) Binaries should appear in the bin dir after a successful compile: odamex, odasrv, odamaster
+
You can run "make server" or "make client" to only build the module you want:
  
You can run "make server" or "make client" to only build the module you want.
+
<code>make server</code>
 +
<code>make client</code>
 +
<code>make launcher</code>
  
 
== FreeBSD ==
 
== FreeBSD ==

Revision as of 15:37, 12 April 2006

GNU/Linux

Get the source

You can either download a stable source package, or risk using the bleeding edge svn code.

Download

Download the latest source Untar the archive somewhere:

tar -xjf odamex_build.tar.bz2 cd odamex_build

SVN

Get a dev build using (must have subversion installed!):

svn co svn://odamex.net

Build

In the source directory, use the make command:

make

Binaries should appear in the bin dir after a successful compile: odamex, odasrv, odamaster

You can run "make server" or "make client" to only build the module you want:

make server make client make launcher

FreeBSD

To compile Odamex on FreeBSD, you must have the following ports installed, above and beyond the usual suspects:

In addition, if you want to compile the absolute latest cutting edge version of Odamex, you will also need:

Once those ports are installed, you can simply untar or grab the latest source through subversion into its own directory, switch to the trunk subdirectory, and simply type gmake. If you only want to compile the client or only compile the server, simply type gmake client or gmake server respectively.