This wiki is archived and useful information is being migrated to the main bzflag.org website
Difference between revisions of "Compiling"
m |
|||
Line 27: | Line 27: | ||
./autogen.sh | ./autogen.sh | ||
./configure | ./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. | Please note that depending on permissions levels the '''make install''' command may need to be run as an administrator or root. |
Revision as of 23:59, 24 January 2009
Contents
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
2.99.x =
Other build systems
Other build systems may be supported in the various readme files (minGW, IRIX, SOLARIS,etc..)