Difference between revisions of "Getting the FreeSpace2: SCP Source Code"

From FreeSpace Wiki
Jump to: navigation, search
Line 34: Line 34:
 
Into your console, type the following :  
 
Into your console, type the following :  
 
  svn checkout svn://svn.icculus.org/fs2open/trunk/fs2_open
 
  svn checkout svn://svn.icculus.org/fs2open/trunk/fs2_open
 +
 +
With a fresh Ubuntu 12.10 (latest) install, you will need to install the following packages
 +
* build-essential
 +
* subversion
 +
* autoconf
 +
* automake
 +
* libsdl1.2-dev
 +
* libogg-dev
 +
* libvorbis-dev
 +
* libtheora-dev
 +
* lua5.1
 +
* liblua5.1-0-dev
 +
* libjpeg-dev
 +
 +
 +
To build a debug build :
 +
./autogen.sh --enable-debug
 +
 +
To build with custom CFLAGS :
 +
./autogen.sh "CFLAGS={Your CFLAGS Here}"
 +
Note that the quotes are required
 +
 +
Building with custom CFLAGS for machine specific binaries (such as -march=native -mtune=native), may be unstable and unsupported.  Use at your own risk.
 +
 +
 +
  
 
[[Category:Source Code Project]]
 
[[Category:Source Code Project]]

Revision as of 04:46, 2 April 2013

IMPORTANT NOTES:

On March 2008, the SCP team has changed the repository server from CVS based to SVN based.

Some terms have also changed with the new repository server:

  • The stable branch (old CVS) is now called Trunk (new SVN).
  • HEAD revision (new SVN) is latest version. Do not confuse it with the unstable branch, also called HEAD branch, in old CVS.


Windows

Ported from karajorma's thread on the HLP Forums.

Here's how you set things up:

  • Go to the Tortoise SVN homepage and download the latest version.
  • Install it. You'll probably have to restart your PC afterwards.
  • Make a new folder on your HD where you'd like to install the code. You'll need a fair bit of space for the code + the intermediate files when building it. Press right mouse and choose SVN Checkout from the list.
A image from the forum is needed here
  • An new window will open up. Cut and paste this into the URL of repository box:
    svn://svn.icculus.org/fs2open/trunk/fs2_open
  • By default the HEAD revision will be selected. You probably don't want to change this. Your screen should now look like this:
Another image from the forum is needed here
  • Press OK to begin downloading from the repository.

It's pretty easy. It shouldn't take you more than a minute or two to do once you've installed Tortoise.

Mac

Please see the Mac Development Guide.

Unixes

Into your console, type the following :

svn checkout svn://svn.icculus.org/fs2open/trunk/fs2_open

With a fresh Ubuntu 12.10 (latest) install, you will need to install the following packages

  • build-essential
  • subversion
  • autoconf
  • automake
  • libsdl1.2-dev
  • libogg-dev
  • libvorbis-dev
  • libtheora-dev
  • lua5.1
  • liblua5.1-0-dev
  • libjpeg-dev


To build a debug build :

./autogen.sh --enable-debug

To build with custom CFLAGS :

./autogen.sh "CFLAGS={Your CFLAGS Here}"

Note that the quotes are required

Building with custom CFLAGS for machine specific binaries (such as -march=native -mtune=native), may be unstable and unsupported. Use at your own risk.