Compile
From Code43 Urban Warefare Wiki wiki.code43.net
Contents |
Linux
1. Install scons and build tools
2. Required libs for Code43, SDL >= 1.2, FreeType >= 2.3.5, OpenAL >= 0.0.8, libcURL >= 7.15.5
3. scons or use scons -h to get options
Radiant and xmap2
To create and compile your own maps you will need to compile these two tools
1. Install scons and build tools
2. Required libs for Radiant and xmap2 (excluding code43 libs),
libxml2 >= 2.0.0, zlib >= 1.2.0, GTK+ >= 2.4.0 (requires glib, atk, pango, iconv, etc), gtkglext >= 1.0.0, gtksourceview >= 2.0.0, GLEW >= 1.5.0, boost >= 1.3.4, vorbis >= 1.2.0
3. scons radiant=1 xmap=1 or use scons -h to get options
More options
arch = Choose architecture to build for = linux-i386 | allowed_values=('freebsd-i386 = linux-i386 = linux-x86_64 = netbsd-i386 = win32-mingw = darwin-ppc = darwin-i386')
warnings = Choose warnings level = 1 | allowed_values=('0 = 1 = 2')
debug = Set to >= 1 to build for debug = 0 | allowed_values=('0 = 1 = 2 = 3')
optimize = Set to >= 1 to build with general optimizations = 2 | allowed_values=('0 = 1 = 2 = 3 = 4 = 5 = 6')
simd = Choose special CPU register optimizations = none | allowed_values=('none = sse = 3dnow')
smp = Set to 1 to compile engine with symmetric multiprocessor support
radiant = Set to 1 to compile the XreaLRadiant level editor
xmap = Set to 1 to compile the XMap(2) map compilers
dedicated = Set to 1 to only compile the dedicated server
master = Set to 1 to compile the master server
Windows
Visual C++ 2008 Express
1. Download and install the Visual C++ 2008 Express Edition.
2. Download and install the OpenAL SDK from: http://www.openal.org.
3. Add necessary include Directories in VC9 under Tools -> Options -> Project and Solutions -> VC++ Directories.
4. Add necessary lib Directories in VC9 under Tools -> Options¦ -> Project and Solutions -> VC++ Directories.
5. Use the VC9 solutions to compile code43/code/code43.sln
Mingw
Should be possible to use the scons build command. But might require some build file changes before it works.
Mac OSX
No mac user present

