User:Solrac776/Gentoo
From FreeOrionWiki
Contents |
[edit] 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.
[edit] 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)
[edit] 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
[edit] 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)
[edit] CCache
If you compile FreeOrion often, using ccache and/or -jX helps to decrease the compile times.
Look at scons -h and scons -H.

