navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 26 and Version 27 of dev/Windows

Oct 29, 2007, 2:16:20 AM (13 years ago)


  • dev/Windows

    v26 v27  
    4 === Installing the MinGW, msys & Libraries ===
    5   1. First of all you need subversion from []. There is also a GUI version at [] (The command line version is good if you are experienced with the shell, otherwise download the GUI version)
    6   1. Download and install [ minGW]
    7   1. Download [ msys]
    8    1. Install msys on another path than minGW
    9    2. During the installation process answer yes (y) twice
    10    3. Type in the exact path of minGW directory, so msys can configure the important links.
    11   1. Install [ msysDTK] to the same direcory as msys.
    12   1. Extract the [ toMSYS.rar] to the same direcory as msys.
    13   1. Extract the [ toMinGW.rar] to the same direcory as minGW.
    14   1. Download and install the newest version of Trolltech's Qt at
    15   1. Optionally you can download the [ Orxonox runtime] libraries
     4=== MinGW C++ Toolbox ===
     5Download the '''MinGW C++ Toolbox''' provided on the [ Ogre SF files site]. MinGW must be setup before running Code::Blocks for the first time to make detection of MinGW go smoothly.
     7Download the [ installer package] which will install the following in your mingw directory ie c:\mingw.
     8 * gcc-core-3.4.5-20060117-1
     9 * gcc-g++-3.4.5-20060117-1 with modified libstdc++ with dynamic string and wide string support ([ online Manual])
     10 * w32api-3.8
     11 * binutils-2.17.50-20070129-1 ([ online Manual])
     12 * mingw-runtime-3.11
     13 * gdb-6.3-2.exe ([ online Manual])
     14 * !DrMingw ([ online manual])
    18 === Compilation ===
    19   1. Start msys
    20   1. Go to the project directory
    21 {{{
    22  $ cd orxonox
    23 }}}
    24   1. Run
    25 {{{
    26  $ ./
    27  $ ./configure
    28  $ make
    29 }}}
    30       (note that all packages can be downloaded from from
     18=== MSYS ===
     19Download the MSYS Installer from [ here]. 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.
     20 1. Install MSYS into another path than MinGW
     21 1. During the installation process answer yes (y) twice
     22 1. Type in the exact path of MinGW directory, so MSYS can configure the important links.
     26=== SVN ===
     27Now you need to get subversion from []. There is also a very useful GUI-version at [] (The command line version is good if you are experienced with the shell, otherwise download the GUI-version).
     31=== Get the Ogre source ===
     32Check out the Ogre-repository from into a folder named 'ogre', for example 'c:\orxonox\ogre'.
     33 * svn co ! ogre
     34(Or do it with [ TortoiseSVN], the GUI-version of SVN)
     38=== Dependencies for Code::Blocks + MingW ===
     39For building Ogre 1.4.x source, you will need the [ Ogre 1.4.x Dependencies]. It has all the dependencies built for use with Ogre 1.4.x including the debug and release import libs built from the August 2006 DirectX SDK. Don't use the ones that come with MingW.
     41Unzip the dependencies into your ogre directory, in our example: 'c:\orxonox\ogre'.
     45=== DirectX 9.0c August 2006 edition ===
     46[ Download the SDK]. You will need the DirectX SDK if you plan to build and run in '''debug mode''' when using '''Direct3D9''' Rendering mode. If you plan on building Ogre from source at a later date then you will need the DirectX SDK also. Note that this SDK doesnt work on Windows 2000 or less.
     50=== Code::Blocks ===
     51The easiest way to compile Ogre is using the [ Code::Blocks] project files. [ Use latest Nightly Build]. The Ogre sample project files will not work with Code::Blocks nightly builds prior to Jan 29 2007.
     53 * '''DO NOT USE Code::Blocks 1.0 RC2 or earlier, you must use a recent Nightly build or build from svn HEAD.'''
     54 * Do not install the Nightly build over 1.0 RC2 or you will experience crashes. Unzip the build into a clean directory. You can unzip Nightly builds into a previous nightly build with no problems.
     56There are two downloads you must get from the Nightly build post:
     57 * wxmsw26u_gcc_cb.7z
     58 * CB_2006xxxx_revxxxx_win32.7z
     59Unzip wxmsw26u_gcc_cb.7z witz [ 7zip] into the directory you will unzip CB into. You may have to '''copy''' mingwm10.dll from the MinGW bin directory to the Code::Blocks bin directory if you didn't download it from the Nightly Build page.
     61There are some more detailed install instructions that can be found on the [ Code::Blocks wiki site].
     63Make sure that Code::Blocks found your MinGW C++ Toolbox installation by following these instructions here: [ Code Blocks Compiler Setup].
     67=== Directory setup in Code::Blocks ===
     68[[Image(CB_SetC_D.jpg, nolink, border=0)]]
     69In the settings menu select Compiler and Debugger to setup the directories.
     72[[Image(CB_CompilerDir.jpg, nolink, border=0)]]
     73Setup the include directories for the compiler.
     76[[Image(CB_LinkerDir.jpg, nolink, border=0)]]
     77Setup the lib directories for the linker. Note that DirectX SDK lib is not used. The import libs in the Ogre dependencies will be used instead since MingW cannot link directly to the libs provided in the DirectX SDK.
     80[[Image(CB_ResDir.jpg, nolink, border=0)]]
     81Include directory for windows resource compiler.
     85=== Building Ogre ===
     86To build Ogre, open Ogre_stlp.workspace in Code::Blocks. Make sure you use '''Ogre.workspace''' and not Ogre_stlp.workspace. Ogre_stlp.workspace is for Code::Blocks + MinGW + STLPort.
     88[[Image(CB_BuildWorkspace.jpg, nolink, border=0)]]
     90In the build menu select '''Build Workspace'''. This will build the debug and release targets of all projects listed in the workspace manager window. This will take some time, so have a break.
     92If everything worked, you'll have several binaries and libraries in your ogre\Samples\Common\bin\Release folder.
     96=== Get the Orxonox source ===
     97Check out the Orxonox-repository from into a folder named 'trunk', for example 'c:\orxonox\trunk'. It has to be in the same root-folder as your Ogre directory.
     98 * svn co ! trunk
     99(Or do it with [ TortoiseSVN], the GUI-version of SVN)
     103=== CMake ===
     104Now we can build Orxonox. To do so, we need CMake. CMake is a cross-platform system for build automation. Download the latest binary release from [ here] and install it (you can check "Do not add CMake to the system PATH").
     106Create a file with a short name (in this example, we use 'c:\orxonox\trunk\cm') in your trunk-folder with following content:
     107 * [path to your CMake-installation]/bin/cmake . -G "MSYS Makefiles"
     111=== Building Orxonox ===
     112Open the MSYS console and type:
     113 1. ./cm ''(the file we created just before)''
     114 2. make
     116Now run Orxonox with the 'run-script.bat' file in the 'bin' folder. If you used another directory hierarchy than this tutorial, you'll have to adjust the paths in the .bat file.