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

Editing Category:Compiling

Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: Archived wiki

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
Pages dealing with the building and compiling of BZFlag into usable binary executables.
 
Pages dealing with the building and compiling of BZFlag into usable binary executables.
 +
 +
==Compiling BZFlag 2.0.x on Windows==
 +
To compile BZFlag 2.0.x on Windows, it is recommended that you use Microsoft Visual C++. MSVC7 and MSVC8 are the recommended, MSVC9 may have some incompatibilities. You may use MSVC Express Edition to compile BZFlag, but you will not be able to distribute your executables.
 +
 +
Once you have downloaded your source code, you will also need libcURL, the Windows Server 2003 Platform SDK and DirectX April 2007 SDK. (Note that the November 2007 SDK is incompatible.) Install these libs.
 +
 +
Once the libs are installed, go to the win32 subdirectory of the BZFlag source and go to either the MSVC7 or MSVC8 directories, depending on the version you are using. Click on the BZFlag solution, and build the projects by pressing F5. This may take some time. Once the projects have been built look under the top directory for your executable.
 +
 +
==Compiling BZFlag 2.0.x on MacOSX==
 +
To compile BZFlag 2.0.x on MacOSX, you need to have XCode installed. In addition, you will need to get SDL from the [http://www.libsdl.org SDL web site].
 +
 +
The simplest way to build is to use the Terminal command-line interface. From the '''bzflag''' directory, run
 +
    % '''./autogen.sh'''
 +
    % '''./configure'''
 +
    % '''make'''
 +
Note that depending on your preferences, you may want to use the following arguments to configure: '''--enable-universal''' to make a universal binary and '''--enable-shared''' to use shared objects. For testing and development purposes, it is strongly recommended that you use '''--enable-debug'''.
 +
 +
After '''make''' has completed (without errors!) the three executables ([[:Category:client|BZFlag]], [[BZFS]], and [[BZAdmin]] will be located in the '''bzflag/src/''target''''' directory. You can run these programs from the command line, but if you want to make a double-clickable application, you will need to use 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.

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)