Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of pps/download


Ignore:
Timestamp:
Sep 22, 2016, 12:10:16 PM (8 years ago)
Author:
maxima
Comment:

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 =
    72
    8 Since Orxonox is quite a large project, several steps are required to achieve the above.
    9 
    10 == Preparations ==
    113'''We check out the source and data repository and build for the first time'''
    124
    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:
    287{{{
    298mkdir /scratch/<your-username> && cd /scratch/<your-username>
    309}}}
    31  1. Create your orxonox directory (if not already existing):
     10 3. Create your orxonox directory:
    3211{{{
    3312mkdir orxonox && cd orxonox
    3413}}}
    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):
    3615{{{
    3716svn co http://svn.orxonox.net/game/data/trunk data_extern
     
    4322 4.2 Now get the latest revision of the tutorial:
    4423{{{
    45 svn co http://svn.orxonox.net/game/code/branches/tutorial6 tutorial
     24svn co http://svn.orxonox.net/game/code/trunk
    4625}}}
    47  4.3 Wait for both branches to check out completely.
    4826
    49  4.4 While you wait, download and unzip additional dependencies:
     27 4.3 While you wait, download and unzip additional dependencies:
    5028{{{
    5129wget http://svn.orxonox.net/downloads/tardisDependencies.zip
     
    5432}}}
    5533
    56  4. Prepare to build:
     34 
     35 5. Wait for both branches to check out completely.
     36
     37 6. Prepare to build:
    5738{{{
    5839mkdir build && cd build
    59 cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE ../tutorial
     40cmake ../trunk
    6041}}}
    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):
    6243{{{
    6344make -j4
    6445}}}
    6546 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.
    6847'''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.
    7049{{{
    71 cd ~/<your-username>-extra-0/orxonox/build
    7250./run
    7351}}}