PathEngine home previous: Script and content modificationsnext: Building the Source Code
Contents, Programmers Guide, The Playable Demo, Obtaining and building the source

Obtaining and building the source

Obtaining the demo source code

The demo source code is available on the PathEngine downloads page, in the package 'playableDemoSourceMM_mm.zip', where MM and mm are the major and minor release numbers of the associated SDK release.
Releases of the SDK may be made without affecting the playable demo, so it is common for the version numbers of this package to lag behind the version numbers of the current SDK release.

Installing the source code

Unzip the source code to the same directory as the demo runtime.
The demo solution and project are in the 'samples/demo' directory. Some code from 'samples/shared' is also used.

Building in Visual Studio

To build the demo in Visual Studio simply load the supplied solution and build the 'demo' project.
This will create a file 'demo.dll' (release configuration) or 'demod.dll' (debug configuration) in the bin subdirectory of your installation. You should then be able to run the demo directly from Visual Studio.
The release dll can also be run, as usual, by double clicking 'run playable demo.bat' in the root installation directory.

Building with other compilers

Building with other compilers should be fairly straightforward if you know your way around your compiler.
You can examine 'samples/demo/demo.vcproj' (which is a text file) for a list of .cpp files that need to be built and for include directories to add. The .cpp files need to be compiled into objects and then linked together to create a dll ('demo.dll' to be placed in the 'bin' subdirectory).
Please refer to your compiler specific documentation for instructions about compiling object files and building dlls.


Documentation for PathEngine release 5.24 - Copyright © 2002-2010 PathEnginenext: Building the Source Code