VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Windows: Building and Running Samples and Demos

Shows how to build samples and demos using native compilation on Windows.

The following sections contain detailed instructions for the building VisionWorks' samples. These instructions use the following variables:

Prerequisites

Before building samples, ensure you have met all the prerequisites from the Windows Installation and the following one:

The following section contains information about OpenCV installation. For the instructions on NVIDIA® CUDA® please refer to the Windows Installation.

OpenCV Installation

Download the latest OpenCV 2.4.x from OpenCV Downloads.

Run the executable file and specify the folder to unpack the OpenCV (<OpenCV_INSTALL_DIR>).

Building the Samples

The following procedure uses variabled defined above.

To build samples

  1. Copy sources from the <VisionWorks_DIR>\share\sources to <BUILD_DIR>.
  2. Open Visual Studio's Developer Command Prompt - VS2013 x64 Native Tools Command Prompt.
  3. Go to the <BUILD_DIR>:
     > cd <BUILD_DIR>
    
  4. Edit the config.nmake file - insert correct paths to all prerequisites installation directories. The default configuration already provides some of them in the assumption of default installation paths:
     # Dependency locations
     CUDA_DIR = <CUDA_INSTALL_DIR>
     OPENCV_DIR = <OpenCV_INSTALL_DIR>
     OPENCV_VERSION = <OpenCV_VERSION>
     VISIONWORKS_DIR = <VisionWorks_DIR>
    
     # Debug build?
     dbg = 0
    
  5. Build samples
     > nmake
    

After the end of the build process the directory <BUILD_DIR>\bin\x64\WinNT\release should contain a number of executable files with the names starting with nvx_sample or nvx_demo.

Running the Samples

Run each sample of interest by using the name of the sample as shown in the procedure below.

To run samples