VR-Vantage 1.4.1 API Class Documentation
Building for Windows Using Microsoft Visual Studio

Development in Windows is usually done using Microsoft Visual Studio.

The example projects and the application source include project files to get you started.

  1. To build the VR-Vantage examples or tutorials, in MS VC++, load ./examples/vrvantageExamples.sln. (For 64 bit, it is vrvantageExamples_64.sln.)
    To rebuild a VR-Vantage application, load the .vcproj file in the ./appsrc subdirectory for the application you want to build.
  2. In the Visual Studio Solution Browser, select the project for the example or application that you want to build.
  3. Right-click and choose Properties. The Properties dialog box opens.
  4. Expand the Configuration Properties category.
  5. Expand the C/C++ category.
  6. Select General.
  7. In Additional Include Directories, add the paths to all of the include directories that you need. The following is an example include line (for MSVC++ 10.0):

     $(MAK_VRV_VC10_x64)\include;$(MAK_VRV_VC10_x64)\include\vrvCore;
     $(MAK_VRV_VC10_x64)\include\vrvCoreQt;$(MAK_VRV_VC10_x64)\include\vrvUtil;
     $(MAK_VRL_VC10_x32_x64)\include;$(MAK_VRL_VC10_x32_x64)\include\vlutil;
     $(MAK_VRL_VC10_x32_x64)\include\vl;$(MAK_RTIDIR)\include;$(MAK_RTIDIR)\include\HLA13;
     $(MAK_RTIDIR)\include\HLA1516;$(MAK_RTIDIR)\include\HLA1516E;
     $(MAK_RTIDIR)\include\HLA1516E\RTI;$(QTDIR_MSVC2008_x32)\include;
     $(QTDIR_MSVC2008_x32)\include\Qt;$(QTDIR_MSVC2008_x32)\include\QtCore;
     $(QTDIR_MSVC2008_x32)\include\QtGui;$(CIGI)\include;
     $(MAK_VRV_VC10_x64)\examples\exampleCigiExtension;$(MAK_VRV_VC10_x64)\examples\tutorialSymbolFacade1;
     $(MAK_VRV_VC10_x64)\examples\tutorialSymbolFacade2;$(MAK_VRV_VC10_x64)\examples\tutorialSymbolFacade3;
     $(MAK_VRV_VC10_x64)\examples\tutorialSymbolFacade4;$(MAK_VRV_VC10_x64)\examples\tutorialSymbolFacade5
    

  8. Expand the Linker category.
  9. Select General.
  10. In Additional Library Directories, add the paths to the libraries that you need to link the application. All VR-Vantage Toolkit libraries are automatically linked, if necessary. No explicit linking is required. Only the lib directory needs to be added to the library directory list, as follows:

     vrvantagevrforces\lib
    

    You must explicitly link VR-Link, OpenSceneGraph, and any other libraries that do not perform auto-linking. The following is an example library link line (for MSVC++ 10.0):

     $(MAK_RTIDIR)\lib;$(MAK_VRL_VC10_x32_x64)\lib64;$(MAK_VRV_VC10_x64)\lib64;
    $(QTDIR_MSVC2008_x64)\lib;$(CIGI)\ccl_lib
    

  11. Specify whether this is a release or debug build.
  12. Build the application.

[<< Introduction] [Building for Linux >>]



Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)