Changes between Version 1 and Version 2 of pps/download
- Timestamp:
- Sep 22, 2016, 12:10:16 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pps/download
v1 v2 1 = PPS Coding tutorial = 2 == Summary and goals == 3 In this tutorial, you will 4 * Download the source code and setup a programming environment on your tardis box 5 * Compile the code into a working version of the game 6 * Add an in-game object to the game and configure it 1 = PPS Download = 7 2 8 Since Orxonox is quite a large project, several steps are required to achieve the above.9 10 == Preparations ==11 3 '''We check out the source and data repository and build for the first time''' 12 4 13 The ISG created a special directory for you to store Orxonox in. It is in your home directory and is called 14 {{{ 15 <your-username>-extra-0 16 }}} 17 Put all your orxonox-related files there. This tutorial will do so as well. 18 19 0. Open a Terminal. 20 {{{ 21 Applications > Accessories > Terminal 22 }}} 23 0. Go to your extra-home folder: 24 {{{ 25 cd ~/<your-username>-extra-0 26 }}} 27 (or create a folder for yourself on the local harddrive if the extra-home folder does not yet exist) 5 1. Open a Terminal. 6 2. Create a folder for yourself on the local harddrive: 28 7 {{{ 29 8 mkdir /scratch/<your-username> && cd /scratch/<your-username> 30 9 }}} 31 1. Create your orxonox directory (if not already existing):10 3. Create your orxonox directory: 32 11 {{{ 33 12 mkdir orxonox && cd orxonox 34 13 }}} 35 2. Now check out the latest revision of the data repository (you will probably be asked for a username and password once):14 4. Now check out the latest revision of the data repository (you will probably be asked for a username and password once): 36 15 {{{ 37 16 svn co http://svn.orxonox.net/game/data/trunk data_extern … … 43 22 4.2 Now get the latest revision of the tutorial: 44 23 {{{ 45 svn co http://svn.orxonox.net/game/code/ branches/tutorial6 tutorial24 svn co http://svn.orxonox.net/game/code/trunk 46 25 }}} 47 4.3 Wait for both branches to check out completely.48 26 49 4. 4While you wait, download and unzip additional dependencies:27 4.3 While you wait, download and unzip additional dependencies: 50 28 {{{ 51 29 wget http://svn.orxonox.net/downloads/tardisDependencies.zip … … 54 32 }}} 55 33 56 4. Prepare to build: 34 35 5. Wait for both branches to check out completely. 36 37 6. Prepare to build: 57 38 {{{ 58 39 mkdir build && cd build 59 cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE ../tutorial40 cmake ../trunk 60 41 }}} 61 5. Now build for the first time (may take some time, further builds will be faster):42 7. Now build for the first time (may take some time, further builds will be faster): 62 43 {{{ 63 44 make -j4 64 45 }}} 65 46 The ''-j4'' means to create 4 parallel compile processes. 66 6. Additionally you can use [wiki:EclipseIDE Eclipse] as IDE to develop (if you don't want to use the console ;)). You can67 also use [wiki:KDevelop3] as IDE, though the assistants can help you more with Eclipse.68 47 '''Start the game for the first time''' 69 7. Enter to the appropriate folder and start the game. You will see a menu popping up, just press the ''Quickstart'' button.48 8. Start the game. You will see a menu popping up, just press the ''Quickstart'' button. 70 49 {{{ 71 cd ~/<your-username>-extra-0/orxonox/build72 50 ./run 73 51 }}}