Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 38 and Version 39 of dev/WindowsMinGW


Ignore:
Timestamp:
Sep 21, 2010, 3:22:47 PM (14 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dev/WindowsMinGW

    v38 v39  
    22[[TOC(heading=Platforms, depth=1, WindowsMinGW, VisualStudio, LinuxGentoo, LinuxDebian, LinuxUbuntu, LinuxTardis)]]
    33
    4 == MinGW ==
     4== Install ==
    55
    6 {{{
    7 #!div style="background-color: #D0D0F0; border: solid 1px #000000; margin-right: 200px;"
    8 ''MinGW, a contraction of "Minimalist GNU for Windows", is a port of the GNU Compiler Collection (GCC), and GNU Binutils, for use in the development of native Microsoft Windows applications.''
    9 }}}
     6Since september 2010 we officially support a new version of MinGW with GCC 4.5.0. Below you find a tutorial that explains how to install it, as well as how to upgrade from an older version of MinGW. We strongly encourage you to install GCC 4.5.0, because that's required for the new releases of Ogre (starting with 1.7.0). If you decide to stay with GCC 3.4.5, you have to use old dependency packages which are not maintained anymore.
    107
    11 Download and install [http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/ MinGW].
    12  1. Select "Download and install"
    13  1. Select "Current"
    14  1. Select "MinGW base tools", "g++ compiler", and "MinGW Make"
    15  1. Chose an install path, default is {{{c:\mingw}}} but every other '''path without whitespaces''' works
     8 - [wiki:WindowsMinGW/current Tutorial: Install the current version of MinGW with GCC 4.5.0]
    169
    17 == MSYS ==
     10If you already installed MinGW (by following and old version of this guide), you don't have to re-install everything, just follow the small guide below:
    1811
    19 {{{
    20 #!div style="background-color: #D0D0F0; border: solid 1px #000000; margin-right: 200px;"
    21 ''MSYS, a contraction of "Minimal SYStem", is a Bourne Shell command line interpreter system. Offered as an alternative to Microsoft's cmd.exe, this provides a general purpose command line environment, which is particularly suited to use with MinGW, for porting of many Open Source applications to the MS-Windows platform.''
    22 }}}
     12 - [wiki:WindowsMinGW/upgrade Upgrade to the current version of MinGW with GCC 4.5.0]
    2313
    24 Download and install [http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe MSYS].
    25  1. Chose an install path without whitespaces
    26  1. On some systems: If the post installation doesn't start (cmd.exe shows up with an error), execute {{{c:\<msys-install-path>\postinstall\pi.bat}}}
    27  1. Answer yes (y) twice
    28  1. Specify the path to your MinGW directory (by default this is {{{c:/mingw}}}).
     14For people that want to use an old version of MinGW, we still provide the old guide, but keep in mind that it's outdated and may not work anymore with future versions of Orxonox.
    2915
    30 Switch to the home-directory of your MSYS installation: {{{c:\<msys-install-path>\home\<username>\}}}[[br]]
    31 This is your homedirectory in MSYS, this is where the action takes place.
    32 
    33 '''In the following, we'll call this directory {{{c:\<msys-homedir>\}}} to make things shorter.'''
    34 
    35 
    36 == SVN ==
    37 To use [wiki:SVN] on your system we recommend TortoiseSVN, a very useful GUI-client. [http://tortoisesvn.net/downloads Download]
    38 
    39 TortoiseSVN 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).
    40 
    41 
    42 == Get the source ==
    43 Check 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.'''
    44  * URL: {{{https://svn.orxonox.net/game/code/trunk/}}}
    45  * Checkout directory: {{{c:\<msys-homedir>\trunk\}}}
    46 
    47 {{{
    48 #!div style="background-color: #D0F0D0; border: solid 1px #000000;"
    49 In TortoiseSVN this is done by right clicking into {{{c:\<msys-homedir>\}}} and chosing "SVN checkout...". Then 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").
    50 Accept 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).
    51 
    52 If you're not using TortoiseSVN, use the "svn co <repository> <directory>" command. See [wiki:SVN] for more information.
    53 }}}
    54 
    55 Now do the same with the data repository and store it in a directoy called "data_extern":
    56  * URL: {{{https://svn.orxonox.net/game/data/trunk}}}
    57  * Checkout directory: {{{c:\<msys-homedir>\data_extern}}}
    58 
    59 Now you should have the following directories in your home:
    60 {{{
    61 c:\<msys-homedir>\data_extern
    62 c:\<msys-homedir>\trunk
    63 }}}
    64 
    65 
    66 == Dependencies ==
    67 Download 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]]
    68 Extract the archive into {{{c:\<msys-homedir>\}}}
    69 
    70 Now you should have the following directories in your home:
    71 {{{
    72 c:\<msys-homedir>\data_extern
    73 c:\<msys-homedir>\dependencies
    74 c:\<msys-homedir>\trunk
    75 }}}
    76 
    77 == OpenAL ==
    78 Make 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.
    79 
    80 == CMake ==
    81 Now 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.
    82  * '''While installing check the option to "add CMake to the system PATH"'''
    83 
    84 Open {{{c:\<msys-install-path>\etc\profile}}} and add the following line at the bottom of the file:
    85 {{{
    86 alias cm='cmake .. -G "MSYS Makefiles"'
    87 }}}
    88 
    89 == Building Orxonox ==
    90 Open the MSYS console, change into your trunk folder and create an output directory for the binaries:
    91 {{{
    92 $ cd trunk
    93 $ mkdir build
    94 $ cd build
    95 }}}
    96 
    97 Now 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:
    98 {{{
    99 $ cm
    100 $ make
    101 }}}
    102 The 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].
    103 
    104 Compiling will take some time (CMake shows you the percentage). Be patient.[[br]]
    105 
    106 If everything worked fine, start Orxonox with {{{c:\<msys-homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).
     16 - [wiki:WindowsMinGW/345 Outdated tutorial: Install MinGW with GCC 3.4.5]