Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: DuncanF on March 04, 2007, 02:13:42 am

Title: Linux and Freespace
Post by: DuncanF on March 04, 2007, 02:13:42 am
Was just curious which distributions of linux people use who are involved with the SCP.  Sorry if this is deemed slightly off topic, last time I tried working with Freespace in linux the distribution I was using at the time was too far out of date to compile.
Title: Re: Linux and Freespace
Post by: WMCoolmon on March 04, 2007, 02:41:29 am
I use Kubuntu (64-bit). The main thing is making sure you have all the libraries that you need...people have gone through the code and updated it in many cases to work with all the various iterations of Linux's GCC, or at least a number of the most common ones.
Title: Re: Linux and Freespace
Post by: Mars on March 04, 2007, 07:33:20 pm
Kubuntu 7.04 Feisty Fawn.

I'd recommend a Debian based distro, X/K/Ubuntu, MEPIS, Kanotix, ect... as they have the easiest packaging system to use I've seen... just get the packages configure says you need and you should be fine... I don't remember what all you need, but there's seven or so you'll need.
Title: Re: Linux and Freespace
Post by: DuncanF on March 05, 2007, 07:24:46 pm
Well decided to go with 32 bit Kubuntu 6.10, as I was messing around with 64bit but I don't need it and the performance increase isn't worth some of the hastle for me at the moment.  What is the most stable build for linux at the moment as I see that 3.6.9 isn't out yet.
Title: Re: Linux and Freespace
Post by: castor on March 06, 2007, 11:26:52 am
Better to build it yourself.

apt-get install cvs
apt-get install automake1.8
apt-get install libsdl1.2-dev
apt-get install g++
apt-get install libtheora-dev
apt-get install libvorbis-dev

cvs -d:pserver:[email protected]:/home/fs2source/cvsroot login
cvs -d:pserver:[email protected]:/home/fs2source/cvsroot co -r fs2_open_3_6_9 fs2_open

cd fs2_open
./autogen.sh
make

Grab the binary => /code/fs2_open_r
Title: Re: Linux and Freespace
Post by: Col. Fishguts on March 06, 2007, 05:02:42 pm
I successfully compiled it on Gentoo without any problems.
Title: Re: Linux and Freespace
Post by: ni1s on March 06, 2007, 06:30:44 pm
I successfully compiled it on Gentoo without any problems.
Same here. And also, with Gentoo, you don't need to bother with these development packages. It should be noted thou, Gentoo is a niche distro, catering to control freaks. I wouldn't advice anyone new to Linux to start with Gentoo.

EDIT: Forgot to mention  the fs2_open on Linux (http://www.hard-light.net/wiki/index.php/Fs2_open_on_Linux) wiki article.
Title: Re: Linux and Freespace
Post by: Merlin-TC on March 07, 2007, 11:23:59 am
Using Gentoo 64 bit too, works like a charm.
I remember playing Freespace on a 200Mhz MMX Pentium many years back and I am back playing it since I knew it works in Linux :)
Title: Re: Linux and Freespace
Post by: DuncanF on March 07, 2007, 09:03:47 pm
Well it compiled fine, however when I put the binary in the freespace directory it just flashes to a black screen then closes.
Title: Re: Linux and Freespace
Post by: ni1s on March 07, 2007, 09:22:31 pm
Well it compiled fine, however when I put the binary in the freespace directory it just flashes to a black screen then closes.
What did it write to console?
Title: Re: Linux and Freespace
Post by: DuncanF on March 07, 2007, 09:28:43 pm
I got it working, I was being silly and trying to launch it through the GUI, works fine through terminal.
Title: Re: Linux and Freespace
Post by: ni1s on March 07, 2007, 09:34:42 pm
I got it working, I was being silly and trying to launch it through the GUI, works fine through terminal.
It's easier to have a litte bash script that deals with all the settings and whatever env variables you might want.
Code: [Select]
#!/bin/bash
CMDLINE="-bla bla bla"
./fs2_open_r ${CMDLINE}
Title: Re: Linux and Freespace
Post by: DuncanF on March 08, 2007, 05:56:10 am
thanks everyone, got everything working except that my game isn't generating an ini file even f I launch it as root.
Title: Re: Linux and Freespace
Post by: castor on March 08, 2007, 10:38:37 am
You mean it didn't create the ~/.fs2_open folder?
Title: Re: Linux and Freespace
Post by: ni1s on March 08, 2007, 10:42:05 am
thanks everyone, got everything working except that my game isn't generating an ini file even f I launch it as root.
If you launch the game as root, which you should never ever do, it should create a /root/.fs2_open/fs2_open.ini ( and some other stuff in there ). As a normal user, it's /home/you/.fs2_open.
Title: Re: Linux and Freespace
Post by: tracker on March 09, 2007, 10:04:46 am
all good Ubuntu Dapper 6.10
Title: Re: Linux and Freespace
Post by: DuncanF on March 10, 2007, 02:54:37 am
Had to mess with a couple permissions but now it's working perfectly, thanks for all the help.