*** This HOWTO is now outdated. The official linux demo installer has been released ***
[thanks aidanr for the status update on the release]
HowTo: Compile Beyond The Red Line Demo (from source)
At the time I'm writing this, the linux installer has not yet been released.
I imagine this will become obsolete in a matter of weeks.
Ok first let me start by saying this howto is written for Ubuntu Edgy.
It should work about the same way under Dapper and Feisty, but I can't guarantee all libraries will be availible via the repos, especially in Dapper. >.<
For this howto you will need the following:
1. btrl demo source
2. btrl demo windows installer
3. wine or a windows pc to steal the installed files from
4. libsdl-dev (and friends), libtheora-dev, libogg-dev, libvorbis-dev
5. you'll obviously need build-essential installed but this assumes you already have
...(if you don't have build-essential run: sudo apt-get install build-essential)
You will need the download and install the windows version:
(either with WINE or install on a windows machine then copy the data files)
Save this file to your home directory.
Open a new terminal (you should be at your home directory but it isn't required).
This should install the following (23 libraries in all i believe):
sudo apt-get install libsdl1.2-dev libogg-dev libtheora-dev libvorbis-dev libalut0 libopenal0a libopenal-dev
Now that all the the libraries are installed, decompress the btrl demo archive and begin compiling.
libalut-dev libalut0 libopenal0a libsdl1.2-dev libogg-dev libtheora-dev libaa1-dev
libartsc0-dev libasound2-dev libaudio-dev libaudiofile-dev libdirectfb-dev libdirectfb-extra
libesd0-dev libgl1-mesa-dev libglu1-mesa-dev libjpeg62-dev libncurses5-dev libsdl1.2-dev
libslang2-dev libxt-dev mesa-common-dev libopenal-dev
The make process will take awhile depending on your system, so bounce around the fourms or go
tar -jxvf btrl_fs2_open-3.6.9.tar.bz2
for a walk or something while you wait.
Assuming all went well and the game binary compiled it should now be in the code directory inside the
directory you compiled from.
But before we go any further you'll need to install the windows version of the demo so that you
have the data, graphic, and sound files needed to actually run the demo. Assuming you already have
wine installed and working:
Wait for the installer window to come up and follow through installation.
This may take awhile as the decompressed data files are about 750mb. The installer may even seem to freeze,
just give it 10-20 minutes to complete and try not to get too anxious. Remember where you install the
game so we'll be able to copy the game binary that has already been compiled.
You should still be in the ~/btrl_fs2_open-3.6.9 directory once the installer completes.
Copy the binary to the location you installed Btrl windows demo into.
Then we'll change to the game directory and launch the demo.
cp code/fs2_open_r ~/.wine/drive_c/Program\ Files/BtrlDemo
The game will probably give you an error message saying the resolution is not supported.
cd ~/.wine/drive_c/Program\ Files/BtrlDemo
Simply exit the game by hitting escape twice, and we're back to our terminal one last time.
Find this line:
I believe it was 800x600 but no matter, it's that line. Replace it with this:
VideocardFs2open=OGL -(800x600)x16 bit
ctrl+o to save, then ctrl+x to exit
Then you should be able to launch the game using:
Hopefully I've covered everything possible here.
Please let me know if I"ve missed anything.
I'll also be posting this up on UGA in a few minutes, but I promised the forums I'd do it, so I wanted to post here first. ^_^