Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

Legend:

Unmodified
Added
Removed
Modified
  • dev/WindowsMinGW/current

    v10 v11  
    1111 * '''While installing check the option to "add CMake to the system PATH"'''
    1212
    13 == MinGW ==
     13
     14== MSYS2 and MinGW-w64 ==
    1415
    1516{{{
    1617#!div style="background-color: #D0D0F0; border: solid 1px #000000; margin-right: 200px;"
    17 ''Info: MinGW is a collection of tools (like GCC and more), used to compile source code on Windows.''
     18''Info: MSYS2 is a command shell, used to execute build scripts and more.''
    1819}}}
    19 
    20 Download and install the latest version of [http://www.mingw.org/download/installer MinGW].
    21  1. Chose an install path, default is {{{c:\mingw}}} but every other '''path without whitespaces''' works
    22  1. Default settings will do fine. Continue and let the installer download all packages. Continue again.
    23  1. In the MinGW Installation Manager select "mingw32-base" and "mingw32-gcc-g++"
    24  1. Click Installation -> Apply Changes, then click Apply and wait for the download to finish
    25  1. Wait until the installer downloaded and installed all packages (may take a while)
    26 
    27 == MSYS ==
    2820
    2921{{{
    3022#!div style="background-color: #D0D0F0; border: solid 1px #000000; margin-right: 200px;"
    31 ''Info: MSYS is a command shell, used to execute build scripts and more.''
     23''Info: MinGW-w64 is a collection of tools (like GCC and more), used to compile source code on Windows. Despite its name it supports both 32bit and 64bit builds, depending on how you install it.''
    3224}}}
    3325
    34 Download and install [http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe MSYS].
    35  1. Chose an install '''path without whitespaces''' and install MSYS
    36  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}}})
    37  1. A command shell opens, answer yes (y) twice
    38  1. Specify the path to your MinGW directory (by default this is {{{c:/mingw}}}).
     26Download and install MSYS2 according to the the installation guide on this page: [http://msys2.github.io/ MSYS2 installer].
     27 1. Open the MSYS2 console and type "{{{pacman -S make}}}" to install make
     28 1. Install MinGW:
     29    A. For 32bit-builds type "{{{pacman -S mingw-w64-i686-gcc}}}" in the MSYS2 console
     30    B. For 64bit-builds type "{{{pacman -S mingw-w64-x86_64-gcc}}}" in the MSYS2 console
     31 1. Close MSYS2 and open it again by using the correct shortcut (see the note below). Type "{{{gcc --version}}}" to find the version of gcc. Use this version later on to chose the correction dependency-package.
    3932
    40 Switch to the home-directory of your MSYS installation: {{{c:\<msys-install-path>\home\<username>\}}}[[br]]
    41 This is your homedirectory in MSYS, this is where the action takes place.
     33Note: 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
     37
     38You 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.
     39
     40Switch to the home-directory of your MSYS2 installation: {{{c:\<msys-install-path>\home\<username>\}}}[[br]]
     41This is your homedirectory in MSYS2, this is where the action takes place.
    4242
    4343'''In the following, we'll call this directory {{{c:\<msys-homedir>\}}} to make things shorter.'''
    44 
    45 Note: MSYS installs two shortcuts (by default in {{{Start/Programs/MinGW/MSYS/}}}): 1. "MSYS" (black background; an extension of window's cmd.exe) and 2. "MSYS (rxvt)" (yellow background; a more elaborate shell). We recommend the rxvt version, because it can be resized to full-screen, but Orxonox works with both. (Additional note: The sortcut on the desktop links to the worse version.)
    4644
    4745