| 1 | = Get it Running = |
| 2 | |
| 3 | == Gentoo == |
| 4 | |
| 5 | === Installing the Libraries === |
| 6 | Install the following libraries: |
| 7 | * SDL main, media-libs/libsdl, web: [http://www.libsdl.org/index.php link] |
| 8 | * SDL image, media-libs/sdl-image, web: [http://www.libsdl.org/index.php link] |
| 9 | * SDL true type fonts, media-libs/sdl-ttf, web: [http://www.libsdl.org/index.php link] |
| 10 | * SDL mixer, media-libs/sdl-mixer, web: [http://www.libsdl.org/index.php link] |
| 11 | |
| 12 | Here are the explicit commands to enter: |
| 13 | {{{ |
| 14 | wraith root # emerge media-libs/libsdl |
| 15 | ... |
| 16 | wraith root # emerge media-libs/sdl-image |
| 17 | ... |
| 18 | wraith root # emerge media-libs/sdl-ttf |
| 19 | ... |
| 20 | wraith root # emerge media-libs/sdl-mixer |
| 21 | ... |
| 22 | }}} |
| 23 | Gentoo is now ready to compile and run orxonox :) [[br]] |
| 24 | |
| 25 | |
| 26 | |
| 27 | === Getting the Source === |
| 28 | First of all you will have to install subversion on your system: Make sure, that you have '''ssl''' included in your ''make.conf'' file:[[br]] |
| 29 | '''/etc/make.conf''' |
| 30 | {{{ |
| 31 | ... |
| 32 | USE="..., ssl, ..." |
| 33 | ... |
| 34 | }}} |
| 35 | now emerge the subversion program |
| 36 | {{{ |
| 37 | wraith user # emerge subversion |
| 38 | }}} |
| 39 | Check out the source via svn anonymous, this will download the hole project to the directory orxonox-dir |
| 40 | {{{ |
| 41 | wraith user # svn co http://svn.orxonox.ethz.ch/reporx/orxonox orxonox-dir |
| 42 | }}} |
| 43 | You won't be able to commit (check in) anything with the anonymous repository. You have to ask us for user/pass combination. If you have already an account check it out like this: |
| 44 | {{{ |
| 45 | wraith user # svn co https://svn.orxonox.ethz.ch/reporx/orxonox orxonox-dir |
| 46 | }}} |
| 47 | You will be asked for user name and password, that you have from us. |
| 48 | |
| 49 | |
| 50 | === Compiling === |
| 51 | Just change into the trunk directory, execute configure and make.... |
| 52 | {{{ |
| 53 | wraith user # cd ./orxonox/trunk/ |
| 54 | wraith user # ./configure |
| 55 | ... |
| 56 | wraith user # make |
| 57 | ... |
| 58 | wraith user # cd src |
| 59 | wraith user # ./orxonox |
| 60 | }}} |
| 61 | |
| 62 | === Profiling === |
| 63 | If you want to profile (performance measureing) orxonox you will probably want to view the statistics in a special program like kprof. On Gentoo systems you can just emerge it: |
| 64 | {{{ |
| 65 | wraith root # emerge kprof |
| 66 | }}} |
| 67 | Orxonox runs much much slower with profiling enabled, so don't be embarassed! |
| 68 | {{{ |
| 69 | wraith user # cd ./orxonox/trunk/ |
| 70 | wraith user # ./configure --enable-profile |
| 71 | ... |
| 72 | wraith user # make |
| 73 | ... |
| 74 | wraith user # cd src |
| 75 | wraith user # ./orxonox |
| 76 | }}} |
| 77 | Ok. Orxonox runs now (very slow) and writes its profiling stats to a file called gmon.out. Remember that _only_ those functinalities, that you are using while running the program will be profiled (since the profile log is written while the program is been executed). [[br]] |
| 78 | After you exit the application, you will have to parse the output file and then you are able to open it in kprof application: |
| 79 | {{{ |
| 80 | wraith user # gprof -b ./orxonox > text.out |
| 81 | wraith user # kprof -f text.out |
| 82 | }}} |
| 83 | For more documentation see the DevelopmentResources. |