Compile

From FreeOrionWiki
Revision as of 12:40, 12 June 2004 by Tyreth (Talk | contribs)

Jump to: navigation, search

FreeOrion can currently be compiled under Windows and Linux.

Overview

First of all, you will need to obtain the source. This can be grabbed from our project page or from CVS. The version available on the project page usually corresponds to an official release, and so may be very out of date. If you are interested in helping program FreeOrion then you will need to grab the CVS copy. Then you need to set up the required software, compile the game, download the missing artwork, and run it.

Software requirements

To compile the latest version of FreeOrion you will need GiGi. Here are the version numbers for software dependencies:

Getting the source

CVS

CVS can be obtained in Linux using these commands:

cvs -d:pserver:[email protected]:/cvsroot/freeorion login (if it asks for password, just hit enter)

cvs -z3 -d:pserver:[email protected]:/cvsroot/freeorion co FreeOrion

Package

You can also download an older version of the software in a package from the project page. Remember that if you want to help develop, you will need to obtain a copy from CVS.

Compiling in Linux

Once you have the required software, in particular GiGi, installed, you need to compile FreeOrion. You have two options. The first is to run these commands:

  1. If you have the newest autotools-suite (autoconf 2.59, automake 1.7) installed , ./autogen.sh, otherwise use ./update-configure.sh
  2. ./configure
  3. make

Many people have trouble getting these to work (if you have problems here, please contact Yoghurt so he can iron out the bugs), so custom makefiles can be downloaded here. To get these working follow these steps:

  1. Extract the three Makefile's into their appropriate directories
  2. Edit each Makefile, changing any folder references to point to your directory structure
  3. Remove references to 'ccache' if you are not using it
  4. Go into server/ client/human/ and client/AI/ and run 'make' in each

After these steps, the files freeorion.exe, freeoriond.exe and freeorionca.exe should each be created in the root directory. Run ./freeorion.exe to play the game.

Obtaining Artwork

Some artwork may be missing from the game when you download it. You will probably need to obtain these images. If you are planning to contribute then we can provide you with a link to download the artwork. Contact Tyreth if you need it.