| 69 | | |
| 70 | | ---- |
| 71 | | |
| 72 | | [[OutdatedPage]] |
| 73 | | 1. Get the ebuild: source:/trunk/scripts/gentoo#HEAD (download newest ebuild) |
| 74 | | 1. Change to root user |
| 75 | | {{{ |
| 76 | | wraith root # su - |
| 77 | | }}} |
| 78 | | 1. Copy the ebuild to /usr/portage/games-action/orxonox (and create new directory) |
| 79 | | 1. |
| 80 | | {{{ |
| 81 | | wraith root # cd /usr/portage/games/action/orxonox |
| 82 | | wraith root # ebuild orxonox-*.ebuild digest |
| 83 | | wraith root # emerge orxonox |
| 84 | | }}} |
| 85 | | |
| 86 | | 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. |
| 87 | | |
| 88 | | === Installing the Libraries === |
| 89 | | Install the following libraries: |
| 90 | | * SDL main, media-libs/libsdl, web: http://www.libsdl.org/ |
| 91 | | * SDL_image, media-libs/sdl-image, web: http://www.libsdl.org/SDL_image |
| 92 | | * SDL_(true type fonts), media-libs/sdl-ttf, web: http://www.libsdl.org/SDL_ttf |
| 93 | | * SDL_net, media-libs/sdl-net, web http://www.libsdl.org/SDL_net |
| 94 | | * Glew library |
| 95 | | * OpenAl library |
| 96 | | * libvorbis |
| 97 | | |
| 98 | | Here are the commands to enter: |
| 99 | | {{{ |
| 100 | | wraith root # emerge media-libs/libsdl |
| 101 | | ... |
| 102 | | wraith root # emerge media-libs/sdl-image |
| 103 | | ... |
| 104 | | wraith root # emerge media-libs/sdl-ttf |
| 105 | | ... |
| 106 | | wraith root # emerge media-libs/sdl-net |
| 107 | | ... |
| 108 | | wraith root # emerge glew |
| 109 | | ... |
| 110 | | wraith root # emerge openal |
| 111 | | ... |
| 112 | | wraith root # emerge libvorbis |
| 113 | | ... |
| 114 | | wraith root # emerge qt |
| 115 | | }}} |
| 116 | | |
| 117 | | Or one big one-liner: |
| 118 | | {{{ |
| 119 | | wraith root # emerge libsdl sdl-image sdl-ttf sdl-net glew openal libvorbis qt |
| 120 | | }}} |
| 121 | | |
| 122 | | ==== LUA Scripting language ==== |
| 123 | | Lua is used for scripting in Orxonox, and it will be pulled in while comfiguring. |
| 124 | | 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] |
| 125 | | |
| 126 | | |
| 127 | | |
| 128 | | Gentoo is now ready to compile and then run Orxonox.[[br]] |
| 129 | | |
| 130 | | |
| 131 | | === Getting the Source Code === |
| 132 | | First of all you have to install subversion on your system: Make sure, that you have '''ssl''' included in your ''make.conf'' file:[[br]] |
| 133 | | '''/etc/make.conf''' |
| 134 | | {{{ |
| 135 | | ... |
| 136 | | USE="..., ssl, ..." |
| 137 | | ... |
| 138 | | }}} |
| 139 | | now emerge subversion |
| 140 | | {{{ |
| 141 | | wraith user # emerge subversion |
| 142 | | }}} |
| 143 | | Check out the source via anonymous subversion login. This will download the whole project to the directory orxonox-dir. |
| 144 | | {{{ |
| 145 | | wraith user # svn co http://svn.orxonox.net/orxonox orxonox-dir |
| 146 | | }}} |
| 147 | | 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: |
| 148 | | {{{ |
| 149 | | wraith user # svn co https://svn.orxonox.net/orxonox orxonox-dir |
| 150 | | }}} |
| 151 | | You will be asked for your username and password, that you got from us. |
| 152 | | |
| 153 | | |
| 154 | | === Compiling === |
| 155 | | Just change into the trunk directory, then execute configure and make.... |
| 156 | | {{{ |
| 157 | | wraith user # cd ./orxonox/trunk/ |
| 158 | | wraith user # ./autogen.sh |
| 159 | | wraith user # ./configure |
| 160 | | ... |
| 161 | | wraith user # make |
| 162 | | ... |
| 163 | | wraith user # cd src |
| 164 | | wraith user # ./orxonox |
| 165 | | }}} |
| 166 | | |
| 167 | | |
| 168 | | === Profiling === |
| 169 | | 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: |
| 170 | | {{{ |
| 171 | | wraith root # emerge kprof |
| 172 | | }}} |
| 173 | | Orxonox runs much much slower with profiling enabled. |
| 174 | | {{{ |
| 175 | | wraith user # cd ./orxonox/trunk/ |
| 176 | | wraith user # ./configure --enable-profile |
| 177 | | ... |
| 178 | | wraith user # make |
| 179 | | ... |
| 180 | | wraith user # cd src |
| 181 | | wraith user # ./orxonox |
| 182 | | }}} |
| 183 | | 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). [[br]] |
| 184 | | After you exit the Orxonox, you can parse the output file and then be able to open it in kprof: |
| 185 | | {{{ |
| 186 | | wraith user # gprof -b ./orxonox > text.out |
| 187 | | wraith user # kprof -f text.out |
| 188 | | }}} |
| 189 | | For more documentation see the [wiki:DevelopmentResources development resources]. |