Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 11 and Version 12 of dev/WindowsMinGW/current


Ignore:
Timestamp:
Feb 14, 2016, 2:59:29 PM (8 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dev/WindowsMinGW/current

    v11 v12  
    1 = Windows with MingW and GCC =
     1= Windows with MinGW-w64 and GCC =
    22
    33== CMake ==
     
    2626Download and install MSYS2 according to the the installation guide on this page: [http://msys2.github.io/ MSYS2 installer].
    2727 1. Open the MSYS2 console and type "{{{pacman -S make}}}" to install make
    28  1. Install MinGW:
     28 1. Install MinGW-w64:
    2929    A. For 32bit-builds type "{{{pacman -S mingw-w64-i686-gcc}}}" in the MSYS2 console
    3030    B. For 64bit-builds type "{{{pacman -S mingw-w64-x86_64-gcc}}}" in the MSYS2 console
     
    3232
    3333Note: MSYS2 installs three shortcuts:
    34  1. {{{msys2_shell.bat}}}: a neutral version that does not contain MinGW (not important for us)
    35  1. {{{mingw32_shell.bat}}}: adds the 32bit-installation of MinGW to {{{$PATH}}} (if installed) -> use this for 32bit-builds
    36  1. {{{mingw64_shell.bat}}}: adds the 64bit-installation of MinGW to {{{$PATH}}} (if installed) -> use this for 64bit-builds
     34 1. {{{msys2_shell.bat}}}: a neutral version that does not contain MinGW-w64 (not important for us)
     35 1. {{{mingw32_shell.bat}}}: adds the 32bit-installation of MinGW-w64 to {{{$PATH}}} (if installed) -> use this for 32bit-builds
     36 1. {{{mingw64_shell.bat}}}: adds the 64bit-installation of MinGW-w64 to {{{$PATH}}} (if installed) -> use this for 64bit-builds
    3737
    3838You can install both versions of MinGW-w64 (32bit and 64bit) at the same time. You can determine which version to use by starting MSYS2 with the corresponding shortcut.
    3939
    40 Switch to the home-directory of your MSYS2 installation: {{{c:\<msys-install-path>\home\<username>\}}}[[br]]
     40Switch to the home-directory of your MSYS2 installation: {{{c:\<msys2-install-path>\home\<username>\}}}[[br]]
    4141This is your homedirectory in MSYS2, this is where the action takes place.
    4242
    43 '''In the following, we'll call this directory {{{c:\<msys-homedir>\}}} to make things shorter.'''
     43'''In the following, we'll call this directory {{{c:\<msys2-homedir>\}}} to make things shorter.'''
    4444
    4545
     
    5858
    5959==== Get the source: ====
    60 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.'''
     60Check out the Orxonox-repository into a folder named "trunk", for example {{{c:\<msys2-homedir>\trunk\}}}. '''It's very important to use a directory inside your MSYS2 homedirectory, otherwise you can't compile.'''
    6161 * URL: {{{https://svn.orxonox.net/game/code/trunk/}}}
    62  * Checkout directory: {{{c:\<msys-homedir>\trunk\}}}
     62 * Checkout directory: {{{c:\<msys2-homedir>\trunk\}}}
    6363
    6464Now do the same with the data repository and store it in a directoy called "data_extern":
    6565 * URL: {{{https://svn.orxonox.net/game/data/trunk}}}
    66  * Checkout directory: {{{c:\<msys-homedir>\data_extern}}}
     66 * Checkout directory: {{{c:\<msys2-homedir>\data_extern}}}
    6767
    6868Now you should have the following directories in your home:
    6969{{{
    70 c:\<msys-homedir>\data_extern
    71 c:\<msys-homedir>\trunk
     70c:\<msys2-homedir>\data_extern
     71c:\<msys2-homedir>\trunk
    7272}}}
    7373
    7474{{{
    7575#!div style="background-color: #D0F0D0; border: solid 1px #000000;"
    76 In 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])
     76In TortoiseSVN this is done by right clicking into {{{c:\<msys2-homedir>\}}} and chosing "SVN Checkout...". ([attachment:wiki:WindowsMinGW:orxonox_svn_checkout.gif see this picture])
    7777
    78 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").
     78Then set the URL of the repository to {{{https://svn.orxonox.net/game/code/trunk/}}} and the checkout directory to {{{c:\<msys2-homedir>\trunk\}}} (checkout depth should be "Fully recursive" and revision "HEAD").
    7979Accept 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])
    8080}}}
     
    9292
    9393Download the Orxonox dependencies: [http://svn.orxonox.net/downloads/windows/precompiled_dependencies/OrxonoxDeps_131003_7.0_MinGW-gcc48.7z Download] (get 7-Zip [http://www.7-zip.org/ here]).[[br]]
    94 Extract the archive into {{{c:\<msys-homedir>\}}}
     94Extract the archive into {{{c:\<msys2-homedir>\}}}
    9595
    9696Now you should have the following directories in your home: ([attachment:wiki:WindowsMinGW:orxonox_directories.gif see this picture])
    9797{{{
    98 c:\<msys-homedir>\data_extern
    99 c:\<msys-homedir>\dependencies
    100 c:\<msys-homedir>\trunk
     98c:\<msys2-homedir>\data_extern
     99c:\<msys2-homedir>\dependencies
     100c:\<msys2-homedir>\trunk
    101101}}}
    102102
     
    105105
    106106== Build Orxonox ==
    107 First we add an alias to the profile of MSYS which helps us creating make-files with CMake. Open the MSYS console and type the following lines:
     107First we add an alias to the profile of MSYS2 which helps us creating make-files with CMake. Open the MSYS2 console and type the following lines:
    108108{{{
    109109echo alias cm=\'cmake .. -G \"MSYS Makefiles\"\' >> ~/.profile
     
    118118}}}
    119119
    120 Now we use the alias "cm" we created before. This shortcut will invoke CMake and create the Makefiles. Type the following into the MSYS console:
     120Now we use the alias "cm" we created before. This shortcut will invoke CMake and create the Makefiles. Type the following into the MSYS2 console:
    121121{{{
    122122cm
     
    137137
    138138== Run Orxonox ==
    139 If everything worked fine, start Orxonox with {{{c:\<msys-homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).
     139If everything worked fine, start Orxonox with {{{c:\<msys2-homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).