VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Building an Application that Uses the VR-Forces Toolkit

Table of Contents

You can incorporate VR-Forces functionality in a third-party application (an application other than the VRF sim engine) by creating an instance of a DtCgf application.

The simpleCGF example demonstrates how to do this.

To build an application that uses the VR-Forces toolkit, you must let your compiler know where to find VR-Forces header files and you must let your linker know where to find VR-Forces libraries. Because VR-Forces relies on VR-Link, you must also indicate where to find VR-Link header files and libraries. In addition, when building for HLA, you must provide paths to RTI header files and libraries. Finally, there are several preprocessor definitions that must be included depending on your build configuration.

Please review the prerequisites for building VR-Forces in vrfBuildingtheVRForcesApplicationforWindows-ForcesApplications.

Note
When you build VR-Forces, you can ignore errors about undefined environment variables.

Building an Application for Windows

Under Windows, you must include paths to the VR-Forces, VR-Link, and RTI header files and libraries within your project settings. Rather than using absolute paths, we strongly recommend that you use environment variables to indicate the locations of the various components. That way, when you upgrade to new versions of VR-Link, the RTI, and so on, you will not need to change all of your project settings. In the examples we assume that MAK_VRLDIR, and MAK_RTIDIR point to your VR-Forces, VR-Link, and MAK RTI trees respectively.

For assistance, please contact technical support.

Building an Application for Linux

For Linux platforms, MAK provides makefiles that are configured to build the applications and the examples. Variables must be set according to Building the VR-Forces Application for Linux. You can modify these makefiles to include additional source for your customizations.


Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)