Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Initial Version and Version 1 of pps/download


Ignore:
Timestamp:
Sep 22, 2016, 11:58:12 AM (9 years ago)
Author:
maxima
Comment:

Download Instruction for PPS

Legend:

Unmodified
Added
Removed
Modified
  • pps/download

    v1 v1  
     1= PPS Coding tutorial =
     2== Summary and goals ==
     3In 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
     7
     8Since Orxonox is quite a large project, several steps are required to achieve the above.
     9
     10== Preparations ==
     11'''We check out the source and data repository and build for the first time'''
     12
     13The 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}}}
     17Put all your orxonox-related files there. This tutorial will do so as well.
     18
     19 0. Open a Terminal.
     20{{{
     21Applications > Accessories > Terminal
     22}}}
     23 0. Go to your extra-home folder:
     24{{{
     25cd ~/<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)
     28{{{
     29mkdir /scratch/<your-username> && cd /scratch/<your-username>
     30}}}
     31 1. Create your orxonox directory (if not already existing):
     32{{{
     33mkdir orxonox && cd orxonox
     34}}}
     35 2. Now check out the latest revision of the data repository (you will probably be asked for a username and password once):
     36{{{
     37svn co http://svn.orxonox.net/game/data/trunk data_extern
     38}}}
     39 4.1 Open a new terminal tab, to work in parallel.
     40{{{
     41Press Control + Shift + T.
     42}}}
     43 4.2 Now get the latest revision of the tutorial:
     44{{{
     45svn co http://svn.orxonox.net/game/code/branches/tutorial6 tutorial
     46}}}
     47 4.3 Wait for both branches to check out completely.
     48
     49 4.4 While you wait, download and unzip additional dependencies:
     50{{{
     51wget http://svn.orxonox.net/downloads/tardisDependencies.zip
     52unzip tardisDependencies.zip
     53rm tardisDependencies.zip
     54}}}
     55
     56 4. Prepare to build:
     57{{{
     58mkdir build && cd build
     59cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE ../tutorial
     60}}}
     61 5. Now build for the first time (may take some time, further builds will be faster):
     62{{{
     63make -j4
     64}}}
     65 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 can
     67  also use [wiki:KDevelop3] as IDE, though the assistants can help you more with Eclipse.
     68'''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.
     70{{{
     71cd ~/<your-username>-extra-0/orxonox/build
     72./run
     73}}}