| 1 | = Get it Running = |
| 2 | |
| 3 | == Debian Linux == |
| 4 | |
| 5 | Install the following libraries: |
| 6 | * SDL main library, libsdl1.2-dev, web: [http://www.libsdl.org/index.php link] |
| 7 | * SDL image library, libsdl-image1.2-dev, web: [http://www.libsdl.org/index.php link] |
| 8 | * SDL true type fonts, libsdl-ttf1.2-dev, web: [http://www.libsdl.org/index.php link] |
| 9 | * SDL mixer, libsdl-mixer1.2-dev, web: [http://www.libsdl.org/index.php link] |
| 10 | |
| 11 | I guess you would have to do something like this: |
| 12 | {{{ |
| 13 | wraith root # apt-get install libsdl1.2-dev |
| 14 | ... |
| 15 | wraith root # apt-get install libsdl-image1.2-dev |
| 16 | ... |
| 17 | wraith root # apt-get install libsdl-ttf1.2-dev |
| 18 | ... |
| 19 | wraith root # apt-get install libsdl-mixer1.2-dev |
| 20 | }}} |
| 21 | |
| 22 | |
| 23 | === Getting the Source === |
| 24 | First you will have to install the subversion program, make sure, that the ssl support is enabled |
| 25 | {{{ |
| 26 | wraith root # apt-get install subversion |
| 27 | }}} |
| 28 | Check out the source via svn anonymous, this will download the hole project to the directory orxonox-dir |
| 29 | {{{ |
| 30 | wraith user # svn co http://svn.orxonox.ethz.ch/reporx/orxonox orxonox-dir |
| 31 | }}} |
| 32 | 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: |
| 33 | {{{ |
| 34 | wraith user # svn co https://svn.orxonox.ethz.ch/reporx/orxonox orxonox-dir |
| 35 | }}} |
| 36 | You will be asked for user name and password, that you have from us. |
| 37 | |
| 38 | |
| 39 | === Compiling === |
| 40 | Just change into the trunk directory, execute configure and make.... |
| 41 | {{{ |
| 42 | wraith user # cd ./orxonox/trunk/ |
| 43 | wraith user # ./configure |
| 44 | ... |
| 45 | wraith user # make |
| 46 | ... |
| 47 | wraith user # cd src |
| 48 | wraith user # ./orxonox |
| 49 | }}} |
| 50 | |
| 51 | === Profiling === |
| 52 | 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: |
| 53 | {{{ |
| 54 | wraith root # apt-get install kprof |
| 55 | }}} |
| 56 | Orxonox runs much much slower with profiling enabled, so don't be embarassed! |
| 57 | {{{ |
| 58 | wraith user # cd ./orxonox/trunk/ |
| 59 | wraith user # ./configure --enable-profile |
| 60 | ... |
| 61 | wraith user # make |
| 62 | ... |
| 63 | wraith user # cd src |
| 64 | wraith user # ./orxonox |
| 65 | }}} |
| 66 | 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]] |
| 67 | After you exit the application, you will have to parse the output file and then you are able to open it in kprof application: |
| 68 | {{{ |
| 69 | wraith user # gprof -b ./orxonox > text.out |
| 70 | wraith user # kprof -f text.out |
| 71 | }}} |
| 72 | For more documentation see the DevelopmentResources. |