Difference between revisions of "User:Solrac776/Gentoo"

From FreeOrionWiki
Jump to: navigation, search
m (c4tourelge)
m (Reverted edits by ViletOolom (Talk); changed back to last version by Solrac776)
Line 1: Line 1:
trocnodo
 
  
  

Revision as of 15:54, 25 December 2007


Compiling FreeOrion under Gentoo Linux ~x86 [2-Feb-2007]

* gcc-Version 4.1.1-r3
* svn trunk revision 2002, GG revision 562

I posted my experiences so that they could (hopefully) be of help to anyone else using Gentoo, I found these things out through trial-and-error and by hitting up the 'Net.

sdl log4cpp boost graphviz devil

The gentoo ebuild for sdl is called libsdl and you need log4cpp, boost, graphviz and devil aswell, so the command becomes

# emerge -av log4cpp libsdl boost graphviz devil

by me it looks like:

dev-libs/log4cpp-0.3.5_rc3  USE="threads -doc"

media-libs/libsdl-1.2.11-r1  USE="X aalib alsa libcaca nas opengl xinerama xv -arts -dga -directfb
-esd -fbcon -ggi -noaudio -noflagstrip -nojoystick -novideo -oss -svga"

dev-libs/boost-1.33.1-r1  USE="threads -bcp -bjam -debug -doc -icu% -pyste -threadsonly"

media-gfx/graphviz-2.8-r2  USE="X cairo java lua perl python tcltk -guile -ocaml -php -ruby -static"

media-libs/devil-1.6.7-r1  USE="X gif jpeg mng opengl png sdl tiff -allegro -xpm"

Note: the devil allegro use flag must be disabled!

fmod & Scons

You need also the fmod libary -> Version 3.75 or higher.

# emerge -av fmod

media-libs/fmod-3.75

and Scons to Compile Freeorion

# emerge -av scons

What you've been waiting for: FreeOrion

Get FreeOrion via SVN.

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

Then we do as the Compile page says for Linux:

$ cd freeorion
$ cd FreeOrion
$ cd GG
$ scons
# scons install
$ cd ..
$ scons -j2

To play:

./freeorion [-f for full-screen (doesn't seem to work, but you can set it in the options menu)]
This is a reported bug Geoff the Medio 06:55, 2 Feb 2007 (EST)

Well, at the moment there are many segmentation faults and other oddities, if you have a spare time, fix or report them.

The segfaults are also a reported bug, believed to be due to a bug in the Boost-Signals library. Geoff the Medio 06:55, 2 Feb 2007 (EST)

CCache

If you compile FreeOrion often, using ccache and/or -jX helps to decrease the compile times.

Look at scons -h and scons -H.