


<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://bitfighter.org/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://bitfighter.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Linna</id>
		<title>Bitfighter - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://bitfighter.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Linna"/>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Special:Contributions/Linna"/>
		<updated>2026-12-02T20:47:01Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.15</generator>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Building_Bitfighter</id>
		<title>Building Bitfighter</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Building_Bitfighter"/>
				<updated>2011-08-05T08:25:21Z</updated>
		
		<summary type="html">&lt;p&gt;Linna: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This page is dedicated to getting Bitfighter to build on your system of choice.  Some useful links:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/list Changelog]&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/browse Browse source]&lt;br /&gt;
&lt;br /&gt;
=Source Code=&lt;br /&gt;
Bitfighter now uses Mercurial (hg) to obtain the source code.  Here is some useful Mercurial information:&lt;br /&gt;
*[[Contribute_using_Mercurial]]&lt;br /&gt;
&lt;br /&gt;
The Bitfighter code can be found here:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/checkout Source Checkout]&lt;br /&gt;
&lt;br /&gt;
At the least, you can just copy and paste this into your terminal browser, after installing Mercurial.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;hg clone https://bitfighter.googlecode.com/hg/ bitfighter&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Linux=&lt;br /&gt;
Bitfighter should build on any major flavor of Linux.  It has been tested and is known to work on Ubuntu, Centos, Fedora, Debian, Mandriva and openSUSE.  &lt;br /&gt;
&lt;br /&gt;
The Bitfighter client depends on Freeglut and the Lua development libraries.  Freeglut is not needed to build a Bitfighter dedicated server (without client portions).&lt;br /&gt;
&lt;br /&gt;
Bitfighter must be compiled with the gcc/g++ compiler, which is usually not installed by default in most Linux distributions.  Mercurial is required to obtain the source code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Building full game client on a clean install of Ubuntu'''&lt;br /&gt;
These instructions should work on both 32 and 64 bit platforms.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install mercurial g++ libreadline6-dev&lt;br /&gt;
sudo apt-get install freeglut3-dev libopenal-dev libalut-dev&lt;br /&gt;
&lt;br /&gt;
# Get the source code&lt;br /&gt;
hg clone https://bitfighter.googlecode.com/hg/ bitfighter&lt;br /&gt;
&lt;br /&gt;
# Update to the tag/revision you want&lt;br /&gt;
cd bitfighter&lt;br /&gt;
hg up -c bitfighter-015&lt;br /&gt;
&lt;br /&gt;
# Build the game -- the standard options should work&lt;br /&gt;
make&lt;br /&gt;
&lt;br /&gt;
# Copy required files into exe folder:&lt;br /&gt;
cd exe&lt;br /&gt;
cp -r ../installer/levels .&lt;br /&gt;
cp -r ../installer/robots .&lt;br /&gt;
cp -r ../installer/sfx .&lt;br /&gt;
cp -r ../installer/screenshots .&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Building a dedicated server on a typical clean Centos virtual server instance'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
yum -y update&lt;br /&gt;
yum -y install mercurial&lt;br /&gt;
yum -y install gcc&lt;br /&gt;
yum -y install gcc-c++&lt;br /&gt;
yum -y install zip        # For archiving purposes&lt;br /&gt;
&lt;br /&gt;
yum install -y ncurses-devel     # Needed on some servers&lt;br /&gt;
yum install -y readline-devel    # Needed on some servers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Get the source code&lt;br /&gt;
hg clone https://bitfighter.googlecode.com/hg/ bitfighter&lt;br /&gt;
&lt;br /&gt;
# Update to the tag/revision you want&lt;br /&gt;
cd bitfighter&lt;br /&gt;
hg up -c bitfighter-015&lt;br /&gt;
&lt;br /&gt;
# Build the dedicated server (called bitfighterd)&lt;br /&gt;
make dedicated &lt;br /&gt;
&lt;br /&gt;
# Copy required files into exe folder:&lt;br /&gt;
cd exe&lt;br /&gt;
cp -r ../installer/levels .&lt;br /&gt;
cp -r ../installer/robots .&lt;br /&gt;
cp -r ../installer/sfx .&lt;br /&gt;
cp -r ../installer/screenshots .&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
Bitfighter can be built with MS Visual C++ 2010 Express Edition, a free download from Microsoft, and a much-improved IDE over previous versions.  &lt;br /&gt;
&lt;br /&gt;
To compile, you'll need to obtain a few files directly from Microsoft -- see the &amp;lt;i&amp;gt;readme.txt&amp;lt;/i&amp;gt; in the folder &amp;lt;i&amp;gt;win_include_do_not_distribute&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=OS X=&lt;br /&gt;
Bitfighter builds on OS X using Xcode 3.1 or greater.  You must have developer tools installed to build bitfighter on OS X!&lt;br /&gt;
(You can get them [http://developer.apple.com/technologies/tools/xcode.html from Apple].)&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you don't wish to download Xcode with iOS integration (saves about 2GB off of downloading) you can get older versions on the [http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wo/5.1.17.2.1.3.3.1.0.1.1.0.3.3.3.3.1 developer downloads page].  Xcode 3.2.2 is the latest without iOS built in.&lt;br /&gt;
&lt;br /&gt;
===Getting the source===&lt;br /&gt;
Grabbing the source is just like any other terminal, simply navigate here:&lt;br /&gt;
Applications &amp;gt; Utilities &amp;gt; Terminal and paste in the HG command + url + foldername,[http://bitfighter.org/wiki/index.php?title=Building_Bitfighter#Source_Code which can be found here]&lt;br /&gt;
&lt;br /&gt;
Also like normal, you can find this download in your home folder&lt;br /&gt;
&lt;br /&gt;
===Building Bitfighter===&lt;br /&gt;
'''Note: ''' ''Do NOT use the OSX project folder. It is an old unused file. Instead, find the folder that says 'zap' ''&lt;br /&gt;
&lt;br /&gt;
#Navigate through bitfighter &amp;gt; zap &amp;gt; Bitfighter.xcodeproj&lt;br /&gt;
#Open Bitfighter.xcodeproj with Xcode.&lt;br /&gt;
#Click 'Build and Go' at the top.  Bitfighter should compile successfully and attempt to launch.&lt;br /&gt;
#*'''Note:''' building from trunk may NOT complete successfully and/or the launch may fail.&lt;br /&gt;
#Your newly created bundle is found in your SVN source checkout folder at bitfighter &amp;gt; zap &amp;gt; build &amp;gt; Release&lt;br /&gt;
&lt;br /&gt;
====Quickbuild====&lt;br /&gt;
&lt;br /&gt;
If your lazy like me, you can do this a quicker way. Just [http://www.teethwhiteningathomev.com/ whiten your teeth]&lt;br /&gt;
Right after you download the source, stay in the terminal window&lt;br /&gt;
Open a new window, and click &lt;br /&gt;
&lt;br /&gt;
&amp;lt;Code&amp;gt;&lt;br /&gt;
cd (filename you chose when you downloaded the game)&lt;br /&gt;
&lt;br /&gt;
cd zap&lt;br /&gt;
&lt;br /&gt;
xcodebuild&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/Code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will start punching in alot of code in the window. just let this sit for a while and soon it will be built. The product will be stored in the same place you stored before&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you have successfully built your own Bitfighter game.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
# The bitfighter project also builds the tnl and libtomcrypt frameworks automatically before compiling the bitfighter source itself.&lt;br /&gt;
# The following frameworks are added automatically to the bundle:&lt;br /&gt;
#*libtomcrypt.framework&lt;br /&gt;
#*tnl.framework&lt;br /&gt;
#*Openal-Soft.framework&lt;br /&gt;
#*FreeALUT.framework&lt;br /&gt;
# Upon first launch of your newly created game, an alias is created that points to your user's bitfighter data directory.  It is located at Documents &amp;gt; bitfighter_settings.  The data directory contains bitfighter settings as well as the levels, scripts, and screenshots save locations.&lt;/div&gt;</summary>
		<author><name>Linna</name></author>	</entry>

	</feed>