Changes between Version 34 and Version 35 of dev/WindowsMinGW
- Timestamp:
- Mar 15, 2010, 10:53:43 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
dev/WindowsMinGW
v34 v35 3 3 4 4 == 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}}}6 5 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 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 7 16 8 17 == 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 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}}}). 14 29 15 30 Switch to the home-directory of your MSYS installation: {{{c:\<msys-install-path>\home\<username>\}}}[[br]] … … 20 35 21 36 == SVN == 22 To use [wiki:SVN] on your system we recommend TortoiseSVN, a very useful GUI- version. [http://tortoisesvn.net/downloads Download]37 To use [wiki:SVN] on your system we recommend TortoiseSVN, a very useful GUI-client. [http://tortoisesvn.net/downloads Download] 23 38 24 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). … … 26 41 27 42 == 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.'''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.''' 29 44 * URL: {{{https://svn.orxonox.net/game/code/trunk/}}} 30 45 * Checkout directory: {{{c:\<msys-homedir>\trunk\}}} 31 46 47 {{{ 48 #!div style="background-color: #D0F0D0; border: solid 1px #000000;" 32 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"). 33 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). 34 51 35 If you're not using TortoiseSVN, use the "svn co repository directory" command. See [wiki:SVN] for more information. 52 If you're not using TortoiseSVN, use the "svn co <repository> <directory>" command. See [wiki:SVN] for more information. 53 }}} 36 54 37 Now do the same with the media repository:55 Now do the same with the data repository and store it in a directoy called "data_extern": 38 56 * URL: {{{https://svn.orxonox.net/game/data/trunk}}} 39 * Checkout directory: {{{c:\<msys-homedir>\ media}}}57 * Checkout directory: {{{c:\<msys-homedir>\data_extern}}} 40 58 41 59 Now you should have the following directories in your home: 42 60 {{{ 43 c:\<msys-homedir>\ media61 c:\<msys-homedir>\data_extern 44 62 c:\<msys-homedir>\trunk 45 63 }}} … … 47 65 48 66 == Dependencies == 49 Download the Orxonox dependencies: [http://svn.orxonox.net/ogre/precompiled_dependencies/OrxonoxDeps_09 0303_MinGW.7z Download] (get 7-Zip [http://www.7-zip.org/ here]).[[br]]67 Download 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]] 50 68 Extract the archive into {{{c:\<msys-homedir>\}}} 51 69 52 70 Now you should have the following directories in your home: 53 71 {{{ 72 c:\<msys-homedir>\data_extern 54 73 c:\<msys-homedir>\dependencies 55 c:\<msys-homedir>\media56 74 c:\<msys-homedir>\trunk 57 75 }}} … … 64 82 * '''While installing check the option to add CMake to the system PATH''' 65 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 == 66 90 Open the MSYS console, change into your trunk folder and create an output directory for the binaries: 67 91 {{{ … … 70 94 $ cd build 71 95 }}} 72 Then create a shortcut to save some typing in the next section: 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: 73 98 {{{ 74 $ echo "cmake .. -G \"MSYS Makefiles\"" > cm 99 $ cm 100 $ make 75 101 }}} 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]. 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]. 87 103 88 104 Compiling will take some time (CMake shows you the percentage). Be patient.[[br]] 89 105 90 If everything worked fine, start Orxonox with {{{c:\<msys-homedir>\trunk\build\run.bat}}} 106 If everything worked fine, start Orxonox with {{{c:\<msys-homedir>\trunk\build\run.bat}}} (you can't execute orxonox.exe directly).