Difference between revisions of "User:Solrac776/Gentoo"

From FreeOrionWiki
Jump to: navigation, search
(Undo revision 7137 by DronrOlcob (Talk))
Line 1: Line 1:
 +
* [http://relvardaror.com/dellierro.html dronorolod]
 +
http://darcnavid.com/roalracsitta.html[dronorolod] [[http://darcnavid.com/roalracsitta.html][dronorolod]]
 +
* http://chic4tbocze.com/zeleracviri.html dronorolod
 +
* [[http://trdomdargetl.com/chibocdro.html dronorolod]]
 +
* [[http://cnacaboclio.com/trocboc.html|dronorolod]]
 +
* [[http://getrelelelc.com/oloeltrocde.html | dronorolod]]
 +
* [http://dronalouacbo.com/eltcpasolosi.html|dronorolod]
 +
* [dronorolod|http://trc4to.com/acdard.html]
 +
* ((http://ouletopasc.com/cabotapaso.html dronorolod))
 +
* [dronorolod](http://aceldo.com/pasc4t.html "dronorolod")
 +
"dronorolod":http://varladrono.com/lapasdeldom.html
 +
 
=Compiling FreeOrion under Gentoo Linux ~x86 [2-Feb-2007]=
 
=Compiling FreeOrion under Gentoo Linux ~x86 [2-Feb-2007]=
 
  * gcc-Version 4.1.1-r3
 
  * gcc-Version 4.1.1-r3

Revision as of 11:18, 15 August 2009

http://darcnavid.com/roalracsitta.html[dronorolod] [[1][dronorolod]]

"dronorolod":http://varladrono.com/lapasdeldom.html

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!

Note: At the time of this entry, GiGi depends on >=dev-lib/boost-1.35 which is masked testing in portage.

# ACCEPT_KEYWORDS="~x86" emerge --oneshot -av \>=dev-lib/boost-1.35

Should get this problem solved quick and dirty.

# echo =dev-lib/boost-1.35.0-r1 ~x86 >> /etc/portage/packages.keywords
# echo =dev-lib/boost-build-1.35.0-r1 ~x86 >> /etc/portage/packages.keywords
# emerge -av boost

Pulls no testing dependencies of boost in (except boost-build, which is needed no matter what.), as only boost accepts the testing keyword.

For more information on masked packages refer to the emerge man pate, or the Gentoo Handbook. --V 02:45, 20 August 2008 (EDT)

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.