Fs2 open on Linux/Compiling PCS2

From FreeSpace Wiki
Revision as of 11:54, 25 September 2013 by Niffiwan (talk | contribs)
Jump to: navigation, search

This is a quick guide for compiling PCS2 on Linux

(it's rough so far because I didn't know anything about scons before today...)

Ubuntu 12.04 (and derivatives like Linux Mint 13)

  • Install the following dependencies (you may already have some of these if you've previously compiled FSO / wxLauncher / wxFRED)
$ sudo apt-get install scons git libdevil-dev wx2.8-headers libwxbase2.8-dev libwxgtk2.8-dev libwxgtk2.8-dbg libboost-regex1.46-dev libboost-system1.46-dev libboost-filesystem1.46-dev
  • Checkout a copy of the code & change to the new directory
$ git clone git://alliance.git.sourceforge.net/gitroot/alliance/PCS2
$ cd PCS2
  • Build PCS2 (note that the debug build is the default build target)
$ scons
$ scons pcs2
  • Copy pcs2 to somewhere in your path (optional)
$ sudo cp pcs2 /usr/local/bin 
$ sudo cp pcs2d /usr/local/bin