OFGame Compiling
From OpenFrag
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
- Install Visual C++ 2008 Express Edition ( Service Pack 1 is now included )
- Install the Platform SDK
- Download the latest PhysX SDK (ATTENTION all no-nvidia users: download BOTH SDK and System Software package, the programm will complain about missing nvcuda.dll, one place to obtain it is here, well hacky, but works);
- either download OpenFrag "Stable branch" from SVN - might be very outdated, so rather do the following:
- or downloadOpenFrag "Development branch" from SVN
- 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'

