Modding, Mission Design, and Coding > Cross-Platform Development

FS2_Open Linux Mini Howto

<< < (2/59) > >>

Rats, just managed to get the cvs :)

Downloading right now :)


Great stuff :yes: , I'll test it later on my machines.

Incase you would like to get FS2_Open to run in linux (x86 architecture) you might find this intresting:

First grab bKtHeG's source tarball from and extract the fs2_open directory.
First do the configure script ./configure -disable-networking
And after that execute make.
Incase you get errors while compiling in ds.cpp, it is probably because you lack the  latest CVS version of openAL.

In order to get the latest version, you should first make sure you have CVS installed.
Do the following in a shell(make sure you are online):

cvs -d:pserver:[email protected]:/usr/local/cvs-repository login

This will connect to the repository, if you are asked for a password, use "guest"
Now do the following:

cvs -d:pserver:[email protected]:/usr/local/cvs-repository co openal

This will download the repository into your current directory, so make sure you are in a temporary directory first!
Change to the directory, and read the docs for openAL.
Basicly, you'll have to do the following from within the openal directory:

cd linux
./configure --prefix=/usr/local
make install

Make sure you replace the old libraries in /usr/lib and that you eighter copy or link the new ones to /usr/lib

Now go back to the fs2_open directory, and run make again.

Make should now finish the compilation, and create the file fs2 (located in code/), copy this file to your freespace 2 directory.
If it doesn't, and complains about not finding -lGL, don't panic, this means you don't have a symbolic link in /usr/lib towards the correct file.
Create the symlink called and make it point to /usr/X11R6/lib/

Again start make from within the fs2_open directory.

In that same directory, create a textfile called fs2_open.ini and make sure it contains the following:

VideocardFs2open=OpenGL - Primary Display Driver(1024 x 768)
Videocard=OpenGL - Primary Display Driver(1024 x 768)

That's all, you should now be able to start fs2 with ./fs2

Extra notes, if you installed FreeSpace 2 using eg iculus's installer and get an error "error parsing strings.tbl" or "error parsing rank.tbl", try copying over your working freespace install from your windows partition, and see if that helps.
Don't have windows installed? No biggy, install the latest wine, and you can use the installer from the FreeSpace CD's.
Incase you got an error while compiling like, eg "brace-enclosed initializer used to initialize x", it is most likely because of a whacked GCC install, check that you have binaries that match each other (don't mix files from eg 2.9.2 with 3.x), and if that doesn't help, try removing & reïnstalling GCC.

With many thanks to bKtHeG for making this available

is this the most recent?


It compiles and links on windows, after a few updates:

in gropengl.cpp

bk has:


I had to change the pathing to:

#include "gl/gl.h"
#include "gl/glu.h"
#include "gl/glext.h"

And the it compiled the ogl stuff.

Another error was in localization.cpp, I had to comment out the include for unistd.h

With that, this compiles, runs, and can load the first SP training mission.

Also had to replace the code/make file stuff with what is in CVS, so there is an issue there we'll have to resolve.

Good stuff! What can we do to get this into CVS!?!


[0] Message Index

[#] Next page

[*] Previous page

Go to full version