Note: To build Orxonox with MinGW we now use the MinGW-w64 packages. Go here for a description of the current build process.
Windows with MingW32 and GCC (Outdated)
Download the latest binary release from here and install it.
- While installing check the option to "add CMake to the system PATH"
Download and install the latest version of MinGW.
- Chose an install path, default is c:\mingw but every other path without whitespaces works
- Default settings will do fine. Continue and let the installer download all packages. Continue again.
- In the MinGW Installation Manager select "mingw32-base" and "mingw32-gcc-g++"
- Click Installation -> Apply Changes, then click Apply and wait for the download to finish
- Wait until the installer downloaded and installed all packages (may take a while)
Download and install MSYS.
- Chose an install path without whitespaces and install MSYS
- (On some systems the post installation doesn't start (cmd.exe shows up with an error)
In this case execute c:\<msys-install-path>\postinstall\pi.bat)
- A command shell opens, answer yes (y) twice
- Specify the path to your MinGW directory (by default this is c:/mingw).
Switch to the home-directory of your MSYS installation: c:\<msys-install-path>\home\<username>\
This is your homedirectory in MSYS, this is where the action takes place.
In the following, we'll call this directory c:\<msys-homedir>\ to make things shorter.
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.)
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).
Get the source:
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.
- URL: https://svn.orxonox.net/game/code/trunk/
- Checkout directory: c:\<msys-homedir>\trunk\
Now do the same with the data repository and store it in a directoy called "data_extern":
- URL: https://svn.orxonox.net/game/data/trunk
- Checkout directory: c:\<msys-homedir>\data_extern
Now you should have the following directories in your home:
|Link||Compiler||Date||Version||OGRE, CEGUI Version|
|13MB||MinGW (GCC 4.5)||03.10.2013||7.0||OGRE 1.8, CEGUI 0.7|
|13MB||MinGW (GCC 4.6)||03.10.2013||7.0||OGRE 1.8, CEGUI 0.7|
|13MB||MinGW (GCC 4.7)||03.10.2013||7.0||OGRE 1.8, CEGUI 0.7|
|12MB||MinGW (GCC 4.8)||03.10.2013||7.0||OGRE 1.8, CEGUI 0.7|
Download the Orxonox dependencies for the correction version of GCC (get 7-Zip here).
Extract the archive into c:\<msys-homedir>\
Now you should have the following directories in your home: (see this picture)
c:\<msys-homedir>\data_extern c:\<msys-homedir>\dependencies c:\<msys-homedir>\trunk
Make sure you have installed OpenAL, which might not be shipped with Windows. Download and install it from here.
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:
echo alias cm=\'cmake .. -G \"MSYS Makefiles\"\' >> ~/.profile source ~/.profile
Change into the trunk folder and create a build directory:
cd trunk mkdir build cd build
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:
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 command (make) builds Orxonox.
If you have a multicore CPU, use the -j [arg] option for make (where [arg] is the number of parallel build threads). For example make -j3 will spawn 3 threads, which is a reasonable number for a dual-core CPU.
Compiling will take some time (CMake shows you the percentage). Be patient.
See some pictures of this:
If everything worked fine, start Orxonox with c:\<msys-homedir>\trunk\build\run.bat (you can't execute orxonox.exe directly).