OFGame Compiling

From OpenFrag

Jump to: navigation, search

Our aim is to allow compiling OpenFrag on Windows and Linux.

For this tutorial we will assume you want to compile the latest version of OpenFrag, if you want to compile an older version, get the dependencies that belong with that version.

Contents

Linux

Compiling on Linux is possible, you can use Cmake (preferred) or try it the original way.

(The "original: ie: autotools way does not work at the moment - Sai_CO 19:17, 29 June 2008 (UTC))


Windows

Prerequisites

using your favourite SVN client, or just use TortoiseSVN, the preferred method by OpenFrag developers (for Windows only).

Compiling

  • Open the Visual C++ solution in .\scripts\msvc2008
  • Open Properties for Win32 Loader, Configuration properties --> Debugging. Set Command to $(TargetPath) and Working Directory to $(TargetDir); Do this both for release and debug mode!
  • Press compile (optionally select Debug or Release mode first)
  • Run from VS using F5 (You can also run the exe directly, but due some config settings it doesn't always work, we're looking into this.)

Debugging

  • (just to make sure) Set your project configuration to 'Debug' and compile OpenFrag.
  • Set 'win32 loader' as the StartUp project
  • Select 'Debug' -> 'Start Debugging'
Personal tools
OpenFrag