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

Difference between revisions of "Category:Compiling"

From BZFlagWiki
Jump to: navigation, search
Line 7: Line 7:
  
 
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.
 
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.

Revision as of 08:10, 30 March 2008

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 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 (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.

Pages in category "Compiling"

The following 6 pages are in this category, out of 6 total.