Difference between revisions of "User:Solrac776/Gentoo"

From FreeOrionWiki
Jump to: navigation, search
(What you've been waiting for: FreeOrion)
(Gentoo 'emerge info' (outdated): Removed since it is well out-dated and probably of no use to anyone)
Line 64: Line 64:
  
 
Look at '''scons -h''' and '''scons -H'''.
 
Look at '''scons -h''' and '''scons -H'''.
 
=Gentoo 'emerge info' (outdated)=
 
 
Here're my Gentoo settings (i.e. emerge info) for those who find it useful.
 
 
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686)
 
------
 
System uname: 2.6.10-gentoo-r6 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHzGentoo Base System version 1.4.16
 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 22:45:39)]
 
ccache version 2.3 [enabled]
 
dev-lang/python:    2.3.5
 
sys-apps/sandbox:    [Not Present]
 
sys-devel/autoconf:  2.59-r6, 2.13
 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
 
sys-devel/binutils:  2.15.92.0.2-r7
 
sys-devel/libtool:  1.5.16
 
virtual/os-headers:  2.6.8.1-r2
 
ACCEPT_KEYWORDS="x86"
 
AUTOCLEAN="yes"
 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
 
CHOST="i686-pc-linux-gnu"
 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
 
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
 
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
 
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
 
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
 
DISTDIR="/home/gentoo/distfiles"
 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
 
MAKEOPTS="-j2"
 
PKGDIR="/home/gentoo/packages"
 
PORTAGE_TMPDIR="/portage/var/tmp"
 
PORTDIR="/usr/portage"
 
PORTDIR_OVERLAY="/usr/local/portage"
 
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
 
USE="x86 3dnow X acpi aim alsa apache2 arts avi berkdb bitmap-fonts bonobo bzlib cdparanoia crypt
 
curl dga div4linux encode esd fam fbcon flac gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 hardened
 
hardenedphp imap imlib ipv6 java jikes jpeg junit kde ldap libg++ libwww mad maildir mikmod mime
 
mono motif mozilla mp3 mpeg msn mysql mysqli ncurses nls offensive ogg oggvorbis opengl oscar oss
 
pam pcmcia pdflib perl php pic png pnp python qt quicktime readline samba sdl slang sndfile spell
 
spl ssl svg svga tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb v4l vhosts videos
 
vorbis win32codecs xine xml xml2 xmms xv xvid zlib video_cards_radeon userland_GNU kernel_linux
 
elibc_glibc"
 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
 

Revision as of 00:34, 29 August 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.