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

Editing 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 12: Line 12:
  
 
* Windows computers can use the Visual C++ compiler, or the MinGW compiler (based on GCC). Windows is the most popular client OS and nearly all clients are built with the Visual C++ compiler, including the official binaries.
 
* Windows computers can use the Visual C++ compiler, or the MinGW compiler (based on GCC). Windows is the most popular client OS and nearly all clients are built with the Visual C++ compiler, including the official binaries.
* Macintosh OS X computers use the Xcode compiler (or optionally gcc, see notes). OS X is the second most popular client OS, official builds are built with Xcode, not GCC.
+
* Macintosh OSX computers use the XCode compiler (or optionally gcc, see notes). OSX is the second most popular client OS, official builds are built with Xcode, not GCC.
 
* Linux and BSD computers use the GCC compiler. Linux is the third most common client OS and packages for distributions are built using GCC.
 
* Linux and BSD computers use the GCC compiler. Linux is the third most common client OS and packages for distributions are built using GCC.
 +
  
 
===Visual C++===
 
===Visual C++===
Line 27: Line 28:
 
   make install
 
   make install
  
Please note that depending on permissions levels the '''make install''' command may need to be run as an administrator or root. On Macintosh OS X, do not run make install when building with GCC. Run the program from the source directory or install it manually as desired instead.
+
Please note that depending on permissions levels the '''make install''' command may need to be run as an administrator or root.
 +
On Macintosh OSX the user can either run make to find any problems, or xcodebuild (after ./configure) to make an .app that is useable.
 +
 
 +
===XCode===
 +
The XCode system uses the '''bzflag/BZFlag.xcodeproj''' project.
 +
Steps to build;
 +
 
 +
* Select'''BZFlag''' as the active target.
 +
* Select '''Development''' as the active build configuration.
 +
* Click on '''Targets''' then click the '''Build''' icon.
 +
 
 +
When this process is complete, the  application will be in '''bzflag/build/Development'''. The application can be run from any location.
  
===Xcode===
+
====Building on Snow Leopard====
The Xcode system uses the  '''Xcode/BZFlag.xcodeproj''' project. Building is fairly straightforward. Follow the instructions in the README.MacOSX file.
+
Snow Leopard defaults to 64-bit binaries, which isn't compatible with MacDisplay.cxx due to Carbon.framework not implementing a lot of functionality in 64-bit mode. To compile on Snow Leopard, the build must be 32-bit.
  
 
==Dependencies==
 
==Dependencies==
Line 63: Line 75:
 
* zlib development libraries
 
* zlib development libraries
  
===Macintosh OS X (Xcode or GCC)===
+
===Macintosh OSX (XCode or GCC)===
 
====Required Libraries====
 
====Required Libraries====
 
* SDL framework 1.2 (1.3 may not work on all versions of OSX)
 
* SDL framework 1.2 (1.3 may not work on all versions of OSX)

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)