VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
user_guide_windows.md
Go to the documentation of this file.
1 <!-- Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. -->
2 
3 @defgroup nvx_sample_building_windows Windows: Building and Running Samples and Demos
4 @brief Shows how to build samples and demos using native compilation on Windows.
5 @ingroup nvx_samples_and_demos_user_guides
6 @{
7 
8 The following sections contain detailed instructions for the building VisionWorks' samples.
9 These instructions use the following variables:
10 
11 - `<VisionWorks_DIR>` specifies the full path to the installation directory of VisionWorks.
12 - `<OpenCV_INSTALL_DIR>` specifies the full path to the installation directory of OpenCV.
13 - `<OpenCV_VERSION>` specifies the version (e.g., 2411) of the OpenCV library, installed to the `<OpenCV_INSTALL_DIR>`.
14 - `<BUILD_DIR>` specifies the full path to the directory where you are going to build samples.
15 - `<CUDA_INSTALL_DIR>` specifies the full path to the installation directory of NVIDIA CUDA (e.g., C:\\Program
16  Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v7.0).
17 
18 ### Prerequisites ###
19 
20 Before building samples, ensure you have met all the prerequisites from the @ref nvx_windows_installing and
21 the following one:
22 
23 - OpenCV is installed on your system.
24 
25 The following section contains information about OpenCV
26 installation. For the instructions on NVIDIA<sup>&reg;</sup> CUDA<sup>&reg;</sup> please refer to the @ref
27 nvx_windows_installing.
28 
29 ## OpenCV Installation ##
30 
31 Download the latest OpenCV 2.4.x from [OpenCV Downloads](http://opencv.org/downloads.html).
32 
33 Run the executable file and specify the folder to unpack the OpenCV (`<OpenCV_INSTALL_DIR>`).
34 
35 ## Building the Samples ##
36 
37 The following procedure uses variabled defined above.
38 
39 ### To build samples ###
40 
41 1. Copy sources from the `<VisionWorks_DIR>\share\sources` to `<BUILD_DIR>`.
42 
43 2. Open Visual Studio's Developer Command Prompt - VS2013 x64 Native Tools Command Prompt.
44 
45 3. Go to the `<BUILD_DIR>`:
46 
47  > cd <BUILD_DIR>
48 
49 4. Edit the `config.nmake` file - insert correct paths to all prerequisites installation directories. The default
50  configuration already provides some of them in the assumption of default installation paths:
51 
52  # Dependency locations
53  CUDA_DIR = <CUDA_INSTALL_DIR>
54  OPENCV_DIR = <OpenCV_INSTALL_DIR>
55  OPENCV_VERSION = <OpenCV_VERSION>
56  VISIONWORKS_DIR = <VisionWorks_DIR>
57 
58  # Debug build?
59  dbg = 0
60 
61 5. Build samples
62 
63  > nmake
64 
65 After the end of the build process the directory `<BUILD_DIR>\bin\x64\WinNT\release` should contain a number of
66 executable files with the names starting with `nvx_sample` or `nvx_demo`.
67 
68 ## Running the Samples ##
69 
70 Run each sample of interest by using the name of the sample as shown in the procedure below.
71 
72 ### To run samples ###
73 
74 - To run `nvx_demo_feature_tracker`, execute:
75 
76  > bin\x64\WinNT\release\nvx_demo_feature_tracker
77 
78 @}
Range< T > all()
Creates a range that includes all points.
Definition: Range.hpp:163