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

Compiling

From BZFlagWiki
Revision as of 02:33, 12 February 2009 by TJ13820 (Talk | contribs) (Visual C++)

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

Launch XCode and open the bzflag/BZFlag.xcodeproj project. Note that XCode should have BZFlag selected as the active target and Development as the active build configuration. Click on Targets then click the Build icon. When this process completes, your application will be in bzflag/build/Development. You can then move it wherever you like.

Visual C++

2.0.x

Requires Visual Studio .net 2003 Visual Studio .net 2005 Visual C++ Express 2003 (With extra packages for dependencies)

Microsoft Direct X SDK for April 2007 WIndows Server 2003 System SDK

2.99.x =

Requires Visual Studio 2008 Open the readme in the source file for information on Libraries and SDK's

Other build systems

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