Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Initial Version and Version 1 of dev/WindowsMinGW/345


Ignore:
Timestamp:
Sep 17, 2010, 7:23:19 PM (14 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dev/WindowsMinGW/345

    v1 v1  
     1= Windows with MingW with GCC v3.4.5 (outdated) =
     2
     3== MinGW ==
     4
     5{{{
     6#!div style="background-color: #D0D0F0; border: solid 1px #000000; margin-right: 200px;"
     7''MinGW is a collection of tools (like GCC and more), used to compile source code on Windows.''
     8}}}
     9
     10Download and install [http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/ MinGW].
     11 1. Select "Download and install"
     12 1. Select "Current"
     13 1. Select "MinGW base tools", "g++ compiler", and "MinGW Make"
     14 1. Chose an install path, default is {{{c:\mingw}}} but every other '''path without whitespaces''' works
     15
     16== MSYS ==
     17
     18{{{
     19#!div style="background-color: #D0D0F0; border: solid 1px #000000; margin-right: 200px;"
     20''MSYS is a command shell, used to execute build scripts and more.''
     21}}}
     22
     23Download and install [http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe MSYS].
     24 1. Chose an install path without whitespaces and install MSYS
     25 1. (On some systems the post installation doesn't start (cmd.exe shows up with an error)[[br]]In this case execute {{{c:\<msys-install-path>\postinstall\pi.bat}}})
     26 1. Answer yes (y) twice
     27 1. Specify the path to your MinGW directory (by default this is {{{c:/mingw}}}).
     28
     29Switch to the home-directory of your MSYS installation: {{{c:\<msys-install-path>\home\<username>\}}}[[br]]
     30This is your homedirectory in MSYS, this is where the action takes place.
     31
     32'''In the following, we'll call this directory {{{c:\<msys-homedir>\}}} to make things shorter.'''
     33
     34
     35== SVN ==
     36To use [wiki:SVN] on your system we recommend TortoiseSVN, a very useful GUI-client. [http://tortoisesvn.net/downloads Download]
     37
     38TortoiseSVN is a shell extension. You can use it within Windows Explorer, which is very practical. Most options are available through the context menu (right mouse button).
     39
     40
     41== Get the source ==
     42Check out the Orxonox-repository into a folder named "trunk", for example {{{c:\<msys-homedir>\trunk\}}}. '''It's very important to use a directory inside your MSYS homedirectory, otherwise you can't compile.'''
     43 * URL: {{{https://svn.orxonox.net/game/code/trunk/}}}
     44 * Checkout directory: {{{c:\<msys-homedir>\trunk\}}}
     45
     46Now do the same with the data repository and store it in a directoy called "data_extern":
     47 * URL: {{{https://svn.orxonox.net/game/data/trunk}}}
     48 * Checkout directory: {{{c:\<msys-homedir>\data_extern}}}
     49
     50Now you should have the following directories in your home:
     51{{{
     52c:\<msys-homedir>\data_extern
     53c:\<msys-homedir>\trunk
     54}}}
     55
     56{{{
     57#!div style="background-color: #D0F0D0; border: solid 1px #000000;"
     58In TortoiseSVN this is done by right clicking into {{{c:\<msys-homedir>\}}} and chosing "SVN checkout...". ([attachment:wiki:WindowsMinGW:orxonox_svn_checkout.gif see this picture])
     59
     60Then set the URL of the repository to {{{https://svn.orxonox.net/game/code/trunk/}}} and the checkout directory to {{{c:\<msys-homedir>\trunk\}}} (checkout depth should be "Fully recursive" and revision "HEAD").
     61Accept the certificate and enter your username and password in the authentication form (only if it's the first time you check out code from our server). ([attachment:wiki:WindowsMinGW:orxonox_svn_checkout_trunk.gif see this picture])
     62}}}
     63{{{
     64#!div style="background-color: #D0F0D0; border: solid 1px #000000; margin-top: 10px;"
     65If you're not using TortoiseSVN, use the "svn co <repository> <directory>" command. See [wiki:SVN] for more information.
     66}}}
     67
     68== Dependencies ==
     69Download the Orxonox dependencies: [http://svn.orxonox.net/downloads/windows/precompiled_dependencies/OrxonoxDeps_091009_4.0_MinGW.7z Download] (get 7-Zip [http://www.7-zip.org/ here]).[[br]]
     70Extract the archive into {{{c:\<msys-homedir>\}}}
     71
     72Now you should have the following directories in your home: ([attachment:wiki:WindowsMinGW:orxonox_directories.gif see this picture])
     73{{{
     74c:\<msys-homedir>\data_extern
     75c:\<msys-homedir>\dependencies
     76c:\<msys-homedir>\trunk
     77}}}
     78
     79== OpenAL ==
     80Make sure you have installed OpenAL (might not be shipped with Windows 7). Otherwise you can compile and run everything but no sound will be played.
     81
     82== CMake ==
     83Now we can build Orxonox. To do so, we need CMake. CMake is a cross-platform system for build automation. Download the latest binary release ('''at least version 2.6''') from [http://cmake.org/HTML/Download.html here] and install it.
     84 * '''While installing check the option to "add CMake to the system PATH"'''
     85
     86Open {{{c:\<msys-install-path>\etc\profile}}} and add the following line at the bottom of the file:
     87{{{
     88alias cm='cmake .. -G "MSYS Makefiles"'
     89}}}
     90
     91== Building Orxonox ==
     92Open the MSYS console, change into your trunk folder and create an output directory for the binaries:
     93{{{
     94$ cd trunk
     95$ mkdir build
     96$ cd build
     97}}}
     98
     99Now we use the alias "cm" from the previous section. This shortcut will invoke CMake and create the Makefiles. Type the following into the MSYS console:
     100{{{
     101$ cm
     102$ make
     103}}}
     104The first command "cm" will check your system (and the dependency directory) for all needed libraries, create the configuration and generate the makefiles. The second "make" command builds Orxonox. If you have a multicore CPU, use "make -j3" instead of just "make". If you get an error while executing one of those steps, report it in the [http://forum.orxonox.net/ Forum] or ask us in [irc://irc.orxonox.net/orxonox IRC].
     105
     106Compiling will take some time (CMake shows you the percentage). Be patient.[[br]]
     107
     108If everything worked fine, start Orxonox with {{{c:\<msys-homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).