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

FS2_Open Linux Mini Howto

<< < (2/59) > >>

Amon_Re:
Rats, just managed to get the cvs :)

Downloading right now :)

Cheers

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

Amon_Re:
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 http://ds.hamburg051.server4free.de...n_linux.tar.bz2 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
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 libGL.so and make it point to /usr/X11R6/lib/libGL.so

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:

[Default]
Fullscreen=0
VideocardFs2open=OpenGL - Primary Display Driver(1024 x 768)
Videocard=OpenGL - Primary Display Driver(1024 x 768)
VideoApi=OpenGL

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

Inquisitor:
is this the most recent?

Inquisitor:
Update:

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

in gropengl.cpp

bk has:

#include
#include
#include

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!?!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version