= Gentoo Linux = [[TOC(heading=Platforms, depth=1, WindowsMinGW, VisualStudio, LinuxGentoo, LinuxDebian, LinuxUbuntu, LinuxTardis, MacOSX)]] ''Edited: 18. Sep. 2008 by [wiki:OliScheuss Oli]''[[br]] ''Edited: 15. Sep. 2008 by [wiki:FelixSchulthess Felix]''[[br]] ''Checked: 01. Dec. 2007 by [wiki:NicolasSchlumberger nico] with 2007.0 profile on amd64''[[br]] ''Checked: 02. Nov. 2007 by [wiki:NicolasSchlumberger nico] with 2007.0 profile on x86''[[br]] This Tutorial assumes that you are using x86. If you are using amd64 just substitute the keyword. == Prerequisites == Orxonox uses Ogre with CEGUI for rendering, OIS for input handling, eNet for network support Boost for threading and cMake as build-system. You will have to install these packages. Every needed package is in portage. Add USE-Flags: {{{ # echo "dev-games/cegui devil expat" >> /etc/portage/package.use # echo "dev-games/ogre cegui devil lua threads" >> /etc/portage/package.use }}} Some packages are unstable, for portage to use them do: {{{ # echo "dev-games/ogre-1.4.5 ~x86" >> /etc/portage/package.keywords # echo "dev-games/ois-1.0 ~x86" >> /etc/portage/package.keywords }}} Then, emerge the packages. CEGUI and Boost are dependencies of Ogre, so they will not be installed explicitly. TCL is also mandatory. {{{ # emerge cmake ogre ois tcl # CFLAGS="-fPIC" emerge enet }}} eNet needs to be compiled with -fPIC to be included as shared library ([wiki:NicolasSchlumberger nico]: Dec '07). == Getting the Source Code == If you have not done so already, you need to install Subversion on your system. To do this, make sure that you have '''ssl''' included in your '''make.conf''' file:, which is normally located at '''/etc/make.conf''': {{{ ... USE="..., ssl, ..." ... }}} Now emerge subversion: {{{ # emerge subversion }}} Now proceed by following the steps described on the [wiki:LinuxSource building] page. == Development with your favorite IDE == CMake can create project files for [wiki:KDevelop3 KDevelop], [wiki:EclipseIDE Eclipse] or [wiki:CMake#UsingCMakegeneratedprojectfiles Code::Blocks] for coding. Click the links for further information.