VR-Forces 4.0.4 Class Documentation
How To Build Examples

Introduction

The examples are pre-compiled and installed by the SDK installer so it is not necessary to build them in order to try them out. To activate the pre-built plug-ins, please see section "5.9.1. Loading a Plug-in" in VR-Forces Users Guide.

Prerequisites

Before you can build an example or a custom application, you must install the supporting software that your installation depends on and you must configure environment variables, so that the example project files can find these prerequisites.

You must do the following:

Building the VR-Forces Examples

To build VR-Forces examples, simply open the project file of the example you wish to use and build it. The newly built DLL or shared object will automatically be copied to the "build" directory where it can be loaded via the Plug-in management interface documented in section 5.9. "Managing Plug-ins" of the VR-Forces Users Guide. Stand-alone executables will automatically be copied into the "bin" directory.

VR-Vantage examples

The examples/VR-Vantage directory contains examples from VR-Vantage (upon which VR-Forces is based). Not all the examples from VR-Vantage are present, specifically any examples of VR-Vantage IG and any others which are either not relevant to or which are duplicated by VR-Forces examples.

The plug-in system used by VR-Vantage is different than that of VR-Forces and will require different steps in order to use the examples. Since the VR-Vantage examples are shipped pre-built, it is not necessary to build them however in order to do so it's necessary to copy the individual VR-Vantage example directories up into the top level VR-Forces example directory. To run vrfGui with a VR-Vantage plugin, it's necessary to use the --plugin command line option. On Windows, special care should be taken to load the corresponding build configuration [debug, release] for the vrfGui executable being used. For example to load the "exampleAccessory" example in DIS, run vrfGui as follows:

vrfgui --dis --plugin ..\examples\plugins\release\exampleSymbolDecoration.dll

The following VR-Vantages examples are stand-alone executables as opposed to plugins and can be copied from the bin directory to the top-level VR-Forces bin directory: exampleObjectDictionary exampleSendDrawControl exampleSendControl


Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)