This wiki is archived and useful information is being migrated to the main bzflag.org website

Compiling

From BZFlagWiki
Revision as of 04:25, 1 April 2008 by JeffM2501 (Talk | contribs) (Source Code)

Jump to: navigation, search

Overview

Compiling BZFlag is the act of taking the raw source codes for the game and using tools to build an executable application(s) for a target system.

Source Code

In order to compile a user must have his or her own copy of the Source Code. The code can be obtained from a source archive from the Download page, or from the BZFlag_SVN server.

Readme Files

Users should always read the README files for the appropriate operating system. These files are located in the root directory of the source code tree.

Compilers

BZFlag is capable of being built on a number of compilers. The compiler used will depend in some way on the operating system of the computer doing the build.

Linux computers, use the GCC compiler. Macintosh Computers use the XCode compiler Windows Computers can use the Visual C++ compiler, or the MinGW compiler (based on GCC)

GCC

The GCC build as a number of requirements;

  • Automake X.XX
  • Autoconf X.XX
  • Autotools X.XX
  • SDL Development libraries 1.2.10 or greater
  • OpenGL Development libraries 1.1 or greater

If the required dependencies are installed, the user must then run the following commands from at root level of the source tree

 ./autogen.sh
 ./configure
 ./make
 ./make install

Please note that depending on permissions levels the make install command may need to be run as an administrator or root.

XCode

Click and be happy ( someone fill this in with real info that is correct ).

Visual C++

2.0.x

2.99.x =

Other build systems

Other build systems may be supported in the various readme files (minGW, IRIX, SOLARIS,etc..)