Version 28 (modified by bknecht, 17 years ago) (diff) |
---|
Gentoo Linux
Last checked: 01. Dec. 2007 by nico? with 2007.0 profile on amd64
Last checked: 02. Nov. 2007 by nico? with 2007.0 profile on x86
This Tutorial assumes that you are using x86. If you are using amd64 just substitute the keyword.
Preparation (required libs)
Orxonox used Ogre with CEGUI for rendering, OIS for input handling, eNet for network support Boost for threading and cMake as build-system. Every needed package is in portage. Add USE-Flags
wraith root # echo "dev-games/cegui devil expat" >> /etc/portage/package.use wraith root # echo "dev-games/ogre cegui devil lua threads" >> /etc/portage/package.use
some packages are unstable, for portage to use them
wraith root # echo "dev-games/ogre-1.4.5 ~x86" >> /etc/portage/package.keywords wraith root # echo "dev-games/ois-1.0 ~x86" >> /etc/portage/package.keywords
emerge the packages. cegui and boost are dependencies of ogre, so they wont be installed explicitly.
wraith root # emerge cmake ogre ois wraith root # CFLAGS="-fPIC" emerge enet
eNet need to be compile with -fPIC to be included as shared library (nico?: Dec '07)
Getting the Source Code
First of all you have to install subversion on your system: Make sure, that you have ssl included in your make.conf file:
/etc/make.conf
... USE="..., ssl, ..." ...
now emerge subversion
wraith user # emerge subversion
Check out the source via anonymous subversion login. This will download the whole project to the directory orxonox-dir.
wraith user # svn co http://svn.orxonox.net/orxonox/trunk orxonox-trunk
You won't be able to commit your own code (check in) with the anonymous subversion repository. You have to ask us for a username/password combination. If you already have an account, check it out like this:
wraith user # svn co https://svn.orxonox.net/orxonox/trunk orxonox-trunk
You will be asked for your username and password, that you got from us.
Compiling
Just change into the trunk directory, then execute configure and make….
wraith user # cd orxonox-trunk wraith user # cmake . ... wraith user # make ... wraith user # cd bin wraith user # ./run-script
Development with KDevelop
See here?
This is an outdated page! This page is very old and the content is not up to date. Not everything (if any) which is written here will be in the final game! |
- Get the ebuild: source:/trunk/scripts/gentoo#HEAD (download newest ebuild)
- Change to root user
wraith root # su -
- Copy the ebuild to /usr/portage/games-action/orxonox (and create new directory)
-
wraith root # cd /usr/portage/games/action/orxonox wraith root # ebuild orxonox-*.ebuild digest wraith root # emerge orxonox
From now on you should be able to play Orxonox, and if you have subversion installed and a login, you will also be able to develop.
Installing the Libraries
Install the following libraries:
- SDL main, media-libs/libsdl, web: http://www.libsdl.org/
- SDL_image, media-libs/sdl-image, web: http://www.libsdl.org/SDL_image
- SDL_(true type fonts), media-libs/sdl-ttf, web: http://www.libsdl.org/SDL_ttf
- SDL_net, media-libs/sdl-net, web http://www.libsdl.org/SDL_net
- Glew library
- OpenAl library
- libvorbis
Here are the commands to enter:
wraith root # emerge media-libs/libsdl ... wraith root # emerge media-libs/sdl-image ... wraith root # emerge media-libs/sdl-ttf ... wraith root # emerge media-libs/sdl-net ... wraith root # emerge glew ... wraith root # emerge openal ... wraith root # emerge libvorbis ... wraith root # emerge qt
Or one big one-liner:
wraith root # emerge libsdl sdl-image sdl-ttf sdl-net glew openal libvorbis qt
LUA Scripting language
Lua is used for scripting in Orxonox, and it will be pulled in while comfiguring. There is also the possibility to use system wide lua installation (aka. emerged package). At the time of this writing, Orxonox is only compatible with lua-5.0.x. Any other version might cause some undesired effects like not being able to compile. [12/2/2007]
Gentoo is now ready to compile and then run Orxonox.
Getting the Source Code
First of all you have to install subversion on your system: Make sure, that you have ssl included in your make.conf file:
/etc/make.conf
... USE="..., ssl, ..." ...
now emerge subversion
wraith user # emerge subversion
Check out the source via anonymous subversion login. This will download the whole project to the directory orxonox-dir.
wraith user # svn co http://svn.orxonox.net/orxonox orxonox-dir
You won't be able to commit your own code (check in) with the anonymous subversion repository. You have to ask us for a username/password combination. If you already have an account, check it out like this:
wraith user # svn co https://svn.orxonox.net/orxonox orxonox-dir
You will be asked for your username and password, that you got from us.
Compiling
Just change into the trunk directory, then execute configure and make….
wraith user # cd ./orxonox/trunk/ wraith user # ./autogen.sh wraith user # ./configure ... wraith user # make ... wraith user # cd src wraith user # ./orxonox
Profiling
If you want to profile Orxonox (measure its performance) you will probably want to view the statistics in a special program like kprof. On Gentoo systems you can just emerge it:
wraith root # emerge kprof
Orxonox runs much much slower with profiling enabled.
wraith user # cd ./orxonox/trunk/ wraith user # ./configure --enable-profile ... wraith user # make ... wraith user # cd src wraith user # ./orxonox
Orxonox now runs very slow and writes its profiling stats to a file called gmon.out. Remember that _only_ the functionalities you use while profiling will be profiled (since the profile log is written while the program is been executed).
After you exit the Orxonox, you can parse the output file and then be able to open it in kprof:
wraith user # gprof -b ./orxonox > text.out wraith user # kprof -f text.out
For more documentation see the development resources.