Difference between revisions of "Compile"

From FreeOrionWiki
Jump to: navigation, search
(Software requirements)
(Python 2.4 is absoleted.)
Line 24: Line 24:
 
* [http://code.google.com/p/bullet/downloads/list Bullet]  - '''version 2.73 or later.''' 2.77 is known to work.
 
* [http://code.google.com/p/bullet/downloads/list Bullet]  - '''version 2.73 or later.''' 2.77 is known to work.
 
* [http://www.freetype.org FreeType2] - a GiGi dependency
 
* [http://www.freetype.org FreeType2] - a GiGi dependency
* [http://www.python.org/download/ Python] - '''version 2.4 or later''' ('''version 2.6 if using the FreeOrion Windows SDK''') ('''version 2.x only; 3.x will not work''')
+
* [http://www.python.org/download/ Python] - '''version 2.5 or later''' ('''version 2.6 if using the FreeOrion Windows SDK''') ('''version 2.x only; 3.x will not work''')
 
* [http://www.openal.org/downloads.html OpenAL and ALUT]
 
* [http://www.openal.org/downloads.html OpenAL and ALUT]
 
* [http://xiph.org/downloads/ libogg] - '''version 1.1.3'''
 
* [http://xiph.org/downloads/ libogg] - '''version 1.1.3'''

Revision as of 22:59, 22 November 2010

Currently, FreeOrion will compile in most recent Windows, Linux, and MacOSX. The *BSD genus of operating systems might also work; follow the Linux instructions in this case.

Overview

First of all, you will need to obtain the source. This can be grabbed from our project page or from Subversion (SVN). The versions available on the project page are official releases or point releases, and may be somewhat or very out of date. To help with programming FreeOrion, you will need to grab the SVN copy. Then you need to set up the required software, compile the game, download the missing artwork, and run it.


Hardware requirements

The FreeOrion code makes heavy use of templates, and requires much memory to compile; 2 GB or more RAM is reccomended.

On Linux, shutting down your X server and compiling from console may help on systems with little RAM. (If this doesn't mean anything to you, simply ignore this advice.)

You will also need a fast processor. To build GG and FreeOrion, expect up to 45 minutes of a Core i5 system, or over an hour on a Core2 Duo system.

At least 2 GB of free disk space is also recommended.

Note that, while not required to compile FreeOrion, running the FreeOrion client requires a graphics card and drivers that support OpenGL 2.0.

Software requirements

Note: On Windows, most dependencies are available pre-compiled in the FreeOrion SDK.

  • GiGi - Latest version from SourceForge SVN, will automatically be included in the FreeOrion/GG directory when checking out the FreeOrion Subversion archive
  • Boost - version 1.42 (Other versions may also work)
  • Ogre 3D - version 1.6.1 or later. 1.7 is known to work.
  • Bullet - version 2.73 or later. 2.77 is known to work.
  • FreeType2 - a GiGi dependency
  • Python - version 2.5 or later (version 2.6 if using the FreeOrion Windows SDK) (version 2.x only; 3.x will not work)
  • OpenAL and ALUT
  • libogg - version 1.1.3
  • libvorbis - version 1.1.2
  • GraphViz - version 2.8 (version < 2.26 on Linux)
  • GLEW - (Windows only)
  • zlib
  • libpng - versions 1.2 and 1.4 work

Getting the source

Subversion

The source code can be obtained from the sourceforge Subversion server, using this command from the Linux command prompt:

svn co https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk freeorion 

For Windows, a graphical shell-extension SVN client, such as TortoiseSVN is recommended, with which the source can be obtained from https://freeorion.svn.sourceforge.net/svnroot/freeorion.

Alternatively, you can download the FreeOrion Windows SDK and update that directory tree with SVN.

Tarballs

The SourceForge Subversion web-client allows one to download numbered versions of the source code as a tarball.

The latest version can be obtained from the Download GNU tarball link on the bottom of this page: http://freeorion.svn.sourceforge.net/viewvc/freeorion/trunk/FreeOrion/

You can also download source versions corresponding to previous releases:

FreeOrion v0.3.15

FreeOrion v0.3.14

FreeOrion v0.3.13

FreeOrion v0.3.12.1 for Linux

FreeOrion v0.3.12 for Windows

FreeOrion v0.3.11

FreeOrion v0.3.10

Compilation

Compilation instructions and troubleshooting tips are available for the following operating systems: