This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Compiling
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 | + | * 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 | + | 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. | ||
− | === | + | ====Building on Snow Leopard==== |
− | + | 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 | + | ===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) |