Difference between revisions of "Building Bitfighter"
(→Linux: fixes) |
(→Linux: Updates for 012/013) |
||
| Line 18: | Line 18: | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install subversion g++ | sudo apt-get install subversion g++ | ||
| − | sudo apt-get install freeglut-dev | + | sudo apt-get install freeglut-dev libopenal-dev libalut-dev |
# Get the source code | # Get the source code | ||
| Line 45: | Line 45: | ||
yum -y install zip # For archiving purposes | yum -y install zip # For archiving purposes | ||
| − | + | yum install -y ncurses-devel # Needed on some servers | |
| − | + | yum install -y readline-devel # Needed on some servers | |
| − | yum -y | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | |||
| − | |||
| − | |||
# Get the source code | # Get the source code | ||
| Line 61: | Line 54: | ||
# Build the dedicated server (called bitfighterd) | # Build the dedicated server (called bitfighterd) | ||
cd bitfighter | cd bitfighter | ||
| − | make dedicated | + | make dedicated |
| − | + | ||
# Copy required files into exe folder: | # Copy required files into exe folder: | ||
Revision as of 04:16, 30 July 2010
Linux
Bitfighter should build on any major flavor of Linux. It has been tested and is known to work on Ubuntu and Centos.
The Bitfighter client depends on Freeglut and the Lua development libraries. Freeglut is not needed to build a Bitfighter dedicated server (without client portions).
Bitfighter must be compile with the g++ compiler, which is not included in many Linux distributions. SVN is required to obtain the source code.
To get the Bitfighter source, use SVN (check the repository for the latest version):
svn co https://zap.svn.sourceforge.net/svnroot/zap/release-012a bitfighter
The game will build out-of-the-box on many distros. For details of the various build options, please see the top-level Makefile.
Building full game client on a clean install of Ubuntu
sudo apt-get update sudo apt-get install subversion g++ sudo apt-get install freeglut-dev libopenal-dev libalut-dev # Get the source code svn co https://zap.svn.sourceforge.net/svnroot/zap/[version] bitfighter # Build the game -- the standard options should work cd bitfighter make # Copy required files into exe folder: cd exe cp -r ../installer/levels . cp -r ../installer/robots . cp -r ../installer/sfx . cp -r ../installer/screenshots .
Building a dedicated server on a clean ServerHitch Centos virtual server instance
yum -y update yum -y install subversion yum -y install gcc yum -y install gcc-c++ yum -y install zip # For archiving purposes yum install -y ncurses-devel # Needed on some servers yum install -y readline-devel # Needed on some servers # Get the source code svn co https://zap.svn.sourceforge.net/svnroot/zap/[version] bitfighter # Build the dedicated server (called bitfighterd) cd bitfighter make dedicated # Copy required files into exe folder: cd exe cp -r ../installer/levels . cp -r ../installer/robots . cp -r ../installer/sfx .
Windows
Bitfighter can be built with MS Visual C++ 2008 Express Edition, a free download from Microsoft.
Currently investigating porting of Win compilation with MinGW, to make cross-platform maintenance easier.
MinGW progress:
Install mingw
Edit various makefiles and ensure that compiler options are correct (i.e. comment/uncomment makefile lines according to the comments)
use c:\MinGW\bin\mingw32-make
- libtomcrypt builds
- tnl builds
- master builds
The game itself is not compiling with MinGW, though the problem seems to be the new Lua support. I'm going to migrate from using Luna to LuaPlus, and see if that helps things. I'll update this page as appropriate.
OS X
Bitfighter builds on OS X using xcode.
