Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Version 17 (modified by rgrieder, 14 years ago) (diff)

Windows with Visual Studio

Platforms

    Error: Page WindowsMinGW does not exist
    Error: Page VisualStudio does not exist
    Error: Page LinuxGentoo does not exist
    Error: Page LinuxDebian does not exist
    Error: Page LinuxUbuntu does not exist
    Error: Page LinuxTardis does not exist

Preparations

You need to get either Visual Studio 2005 or Visual Studio 2008. We do not support .NET 2003 because the compiler is missing an important extension (variadic macros). There has also been no testing with any Express Edition version.

DirectX and OpenAL

You need to make sure DirectX 9 is already installed (required for DirectInput). Also make sure you have installed OpenAL (might no be shipped with Windows 7). Otherwise you can compile and run everything but no sound will be played.

Getting everything set and done

  1. Checkout the HEAD revision of the trunk or of any branch you like. Also checkout the data repository and put it on the same directory level as your source checkout. More information can be found in the SVN? section.

  2. The next thing is getting the external dependencies. We supply these as precompiled archives (see at the bottom) with the lib, dll, pdb and include files. Once you got the archive, put it in the directory of your source checkout folder and extract it right there (not in a new folder). This will create a folder named "dependencies" that includes everything necessary.

You should now have a directory structure like this:

data_external (repository checkout, you choose the name..)
 ...
trunk (repository checkout, you choose the name..)
 bin
 cmake
 dependencies
  bin
  include
  lib
 src
  audio
  ...


  1. We use CMake to have better cross platform support. Get the latest (at least v2.6) binaries at cmake.org and extract/install them.
  2. Run the CMake GUI and select your source checkout folder ('trunk' in my example above). The binary folder below can be anywhere except the source folder itself. We suggest trunk/build.
  3. Hit configure
  4. If you need additional configuration options, have a look a the General Build Options Page?.
  5. Hit "configure" again (or as long as "generate" is unavailable) and then "generate". You will be prompted to select a generator. Choose the Visual Studio version you have (64 bit is not yet supported!).
  6. Go to your freshly created binary folder, open Orxonox.sln and hit F7. That will build orxonox.
  7. On the left you see all targets, make sure that 'orxonox-main' is bold by right clicking on it and selecting "Set as StartUp Project".
  8. F5 will start the game.


If you have any trouble, feel free to contact me (Reto '1337' Grieder).