| 1 | = Building orxonox from source using Linux = |
| 2 | This page describes how to build Orxonox using the latest source code. |
| 3 | |
| 4 | == Get the Source Code == |
| 5 | First, create a folder for Orxonox. Then get a copy of the code by checking out the trunk via anonymous subversionlogin . This will download the latest stable version to the directory ''trunk''. If you have trouble using SVN, go [wiki:SVN here]. |
| 6 | {{{ |
| 7 | user@unix:~> mkdir orxonox |
| 8 | user@unix:~> cd orxonox |
| 9 | user@unix:~/orxonox> svn co http://svn.orxonox.net/orxonox/trunk trunk |
| 10 | }}} |
| 11 | You won't be able to contribute your own code (check in) with the anonymous subversion login. You have to ask us for a username/password combination. If you have an account, check the code out like this: |
| 12 | {{{ |
| 13 | user@unix:~/orxonox> svn co https://svn.orxonox.net/orxonox/trunk trunk |
| 14 | }}} |
| 15 | You will then be asked for the username and password, that you got from us. |
| 16 | |
| 17 | Furthermore, you will need to check out our data repository. This repository contains all the graphics, fonts and sounds and other third-party data for Orxonox. To check it out use the command: |
| 18 | {{{ |
| 19 | user@ubuntu:~/orxonox> svn co https://svn.orxonox.net/data/Media Media |
| 20 | }}} |
| 21 | |
| 22 | == Compiling == |
| 23 | Just cd to the trunk directory, then make a build directory, execute cmake and make and finally run the game: |
| 24 | {{{ |
| 25 | user@ubuntu:~/orxonox> cd trunk |
| 26 | user@ubuntu:~/orxonox/trunk> mkdir build |
| 27 | user@ubuntu:~/orxonox/trunk> cd build |
| 28 | user@ubuntu:~/orxonox/trunk/build> cmake .. |
| 29 | ... |
| 30 | user@ubuntu:~/orxonox/trunk/build> make -j4 |
| 31 | ... |
| 32 | user@ubuntu:~/orxonox/trunk/build> cd .. |
| 33 | user@ubuntu:~/orxonox/trunk> ./run |
| 34 | }}} |
| 35 | * If cmake produces some error messages complaining about dependencies make sure you installed everything neccessary for your OS. |
| 36 | * If orxonox aborts with an error message considering the Media repository make sure that you configured the path of the Media repository (in bin/orxonox.ini) correctly. |