Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 34 and Version 35 of dev/WindowsMinGW


Ignore:
Timestamp:
Mar 15, 2010, 10:53:43 AM (15 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dev/WindowsMinGW

    v34 v35  
    33
    44== MinGW ==
    5 Download and install the [http://svn.orxonox.net/webdev/develop/win32/dev/MinGW_Toolbox_Setup_wr1.exe MinGW package]. Usually MinGW is installed to {{{c:\mingw}}}
    65
     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}}}
     10
     11Download 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
    716
    817== MSYS ==
    9 Download the MSYS Installer from sourceforge: [http://svn.orxonox.net/webdev/develop/win32/dev/MSYS-1.0.10.exe Download] (or version 1.0.11 if you're using an x64 system: [http://switch.dl.sourceforge.net/sourceforge/mingw/MSYS-1.0.11-rc-1.exe Download])[[br]]
    10 MSYS (Minimal SYStem) is a software port of the Unix-Shell to Windows. It's used by MinGW-Developers as a minimal system which can, for example, execute configure-scripts.
    11  1. Install MSYS into another path than MinGW
    12  1. During the installation process answer yes (y) twice
    13  1. Specify the path of the MinGW directory (most probably this will be {{{c:/mingw}}}).
     18
     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}}}
     23
     24Download 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}}}).
    1429
    1530Switch to the home-directory of your MSYS installation: {{{c:\<msys-install-path>\home\<username>\}}}[[br]]
     
    2035
    2136== SVN ==
    22 To use [wiki:SVN] on your system we recommend TortoiseSVN, a very useful GUI-version. [http://tortoisesvn.net/downloads Download]
     37To use [wiki:SVN] on your system we recommend TortoiseSVN, a very useful GUI-client. [http://tortoisesvn.net/downloads Download]
    2338
    2439TortoiseSVN 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).
     
    2641
    2742== Get the source ==
    28 Check out the Orxonox-repository from {{{https://svn.orxonox.net/game/code/trunk/}}} 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.'''
     43Check 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.'''
    2944 * URL: {{{https://svn.orxonox.net/game/code/trunk/}}}
    3045 * Checkout directory: {{{c:\<msys-homedir>\trunk\}}}
    3146
     47{{{
     48#!div style="background-color: #D0F0D0; border: solid 1px #000000;"
    3249In 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").
    3350Accept 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).
    3451
    35 If you're not using TortoiseSVN, use the "svn co repository directory" command. See [wiki:SVN] for more information.
     52If you're not using TortoiseSVN, use the "svn co <repository> <directory>" command. See [wiki:SVN] for more information.
     53}}}
    3654
    37 Now do the same with the media repository:
     55Now do the same with the data repository and store it in a directoy called "data_extern":
    3856 * URL: {{{https://svn.orxonox.net/game/data/trunk}}}
    39  * Checkout directory: {{{c:\<msys-homedir>\media}}}
     57 * Checkout directory: {{{c:\<msys-homedir>\data_extern}}}
    4058
    4159Now you should have the following directories in your home:
    4260{{{
    43 c:\<msys-homedir>\media
     61c:\<msys-homedir>\data_extern
    4462c:\<msys-homedir>\trunk
    4563}}}
     
    4765
    4866== Dependencies ==
    49 Download the Orxonox dependencies: [http://svn.orxonox.net/ogre/precompiled_dependencies/OrxonoxDeps_090303_MinGW.7z Download] (get 7-Zip [http://www.7-zip.org/ here]).[[br]]
     67Download the Orxonox dependencies: [http://svn.orxonox.net/ogre/precompiled_dependencies/OrxonoxDeps_091009_4.0_MinGW.7z Download] (get 7-Zip [http://www.7-zip.org/ here]).[[br]]
    5068Extract the archive into {{{c:\<msys-homedir>\}}}
    5169
    5270Now you should have the following directories in your home:
    5371{{{
     72c:\<msys-homedir>\data_extern
    5473c:\<msys-homedir>\dependencies
    55 c:\<msys-homedir>\media
    5674c:\<msys-homedir>\trunk
    5775}}}
     
    6482 * '''While installing check the option to add CMake to the system PATH'''
    6583
     84Open {{{c:\<msys-install-path>\etc\profile}}} and add the following line at the bottom of the file:
     85{{{
     86alias cm='cmake .. -G "MSYS Makefiles"'
     87}}}
     88
     89== Building Orxonox ==
    6690Open the MSYS console, change into your trunk folder and create an output directory for the binaries:
    6791{{{
     
    7094$ cd build
    7195}}}
    72 Then create a shortcut to save some typing in the next section:
     96
     97Now 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:
    7398{{{
    74 $ echo "cmake .. -G \"MSYS Makefiles\"" > cm
     99$ cm
     100$ make
    75101}}}
    76 
    77 == Building Orxonox ==
    78 Now we use our shortcut from the previous section. This script will invoke CMake and create the Makefiles. Type the following into the MSYS console:
    79 {{{
    80 #!html
    81 <pre class="wiki">
    82 $ ./cm <i><small>(the file we created just before)</small></i>
    83 $ make
    84 </pre>
    85 }}}
    86 The first command will check your system (and the dependency directory) for all needed libraries, create the configuration and generate the makefiles. The second 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].
     102The 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].
    87103
    88104Compiling will take some time (CMake shows you the percentage). Be patient.[[br]]
    89105
    90 If everything worked fine, start Orxonox with {{{c:\<msys-homedir>\trunk\build\run.bat}}}
     106If everything worked fine, start Orxonox with {{{c:\<msys-homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).