Changes between Version 11 and Version 12 of dev/WindowsMinGW/current
- Timestamp:
- Feb 14, 2016, 2:59:29 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
dev/WindowsMinGW/current
v11 v12 1 = Windows with Min gWand GCC =1 = Windows with MinGW-w64 and GCC = 2 2 3 3 == CMake == … … 26 26 Download and install MSYS2 according to the the installation guide on this page: [http://msys2.github.io/ MSYS2 installer]. 27 27 1. Open the MSYS2 console and type "{{{pacman -S make}}}" to install make 28 1. Install MinGW :28 1. Install MinGW-w64: 29 29 A. For 32bit-builds type "{{{pacman -S mingw-w64-i686-gcc}}}" in the MSYS2 console 30 30 B. For 64bit-builds type "{{{pacman -S mingw-w64-x86_64-gcc}}}" in the MSYS2 console … … 32 32 33 33 Note: 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-builds36 1. {{{mingw64_shell.bat}}}: adds the 64bit-installation of MinGW to {{{$PATH}}} (if installed) -> use this for 64bit-builds34 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 37 37 38 38 You 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 39 40 Switch to the home-directory of your MSYS2 installation: {{{c:\<msys -install-path>\home\<username>\}}}[[br]]40 Switch to the home-directory of your MSYS2 installation: {{{c:\<msys2-install-path>\home\<username>\}}}[[br]] 41 41 This is your homedirectory in MSYS2, this is where the action takes place. 42 42 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.''' 44 44 45 45 … … 58 58 59 59 ==== 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 MSYShomedirectory, otherwise you can't compile.'''60 Check 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.''' 61 61 * URL: {{{https://svn.orxonox.net/game/code/trunk/}}} 62 * Checkout directory: {{{c:\<msys -homedir>\trunk\}}}62 * Checkout directory: {{{c:\<msys2-homedir>\trunk\}}} 63 63 64 64 Now do the same with the data repository and store it in a directoy called "data_extern": 65 65 * URL: {{{https://svn.orxonox.net/game/data/trunk}}} 66 * Checkout directory: {{{c:\<msys -homedir>\data_extern}}}66 * Checkout directory: {{{c:\<msys2-homedir>\data_extern}}} 67 67 68 68 Now you should have the following directories in your home: 69 69 {{{ 70 c:\<msys -homedir>\data_extern71 c:\<msys -homedir>\trunk70 c:\<msys2-homedir>\data_extern 71 c:\<msys2-homedir>\trunk 72 72 }}} 73 73 74 74 {{{ 75 75 #!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])76 In 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]) 77 77 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").78 Then 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"). 79 79 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). ([attachment:wiki:WindowsMinGW:orxonox_svn_checkout_trunk.gif see this picture]) 80 80 }}} … … 92 92 93 93 Download 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>\}}}94 Extract the archive into {{{c:\<msys2-homedir>\}}} 95 95 96 96 Now you should have the following directories in your home: ([attachment:wiki:WindowsMinGW:orxonox_directories.gif see this picture]) 97 97 {{{ 98 c:\<msys -homedir>\data_extern99 c:\<msys -homedir>\dependencies100 c:\<msys -homedir>\trunk98 c:\<msys2-homedir>\data_extern 99 c:\<msys2-homedir>\dependencies 100 c:\<msys2-homedir>\trunk 101 101 }}} 102 102 … … 105 105 106 106 == Build Orxonox == 107 First we add an alias to the profile of MSYS which helps us creating make-files with CMake. Open the MSYSconsole and type the following lines:107 First 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: 108 108 {{{ 109 109 echo alias cm=\'cmake .. -G \"MSYS Makefiles\"\' >> ~/.profile … … 118 118 }}} 119 119 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:120 Now we use the alias "cm" we created before. This shortcut will invoke CMake and create the Makefiles. Type the following into the MSYS2 console: 121 121 {{{ 122 122 cm … … 137 137 138 138 == Run Orxonox == 139 If everything worked fine, start Orxonox with {{{c:\<msys -homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).139 If everything worked fine, start Orxonox with {{{c:\<msys2-homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).