1 <!-- Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. -->
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
8 The following sections contain detailed instructions
for the building VisionWorks
' samples.
9 These instructions use the following variables:
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).
20 Before building samples, ensure you have met all the prerequisites from the @ref nvx_windows_installing and
23 - OpenCV is installed on your system.
25 The following section contains information about OpenCV
26 installation. For the instructions on NVIDIA<sup>®</sup> CUDA<sup>®</sup> please refer to the @ref
27 nvx_windows_installing.
29 ## OpenCV Installation ##
31 Download the latest OpenCV 2.4.x from [OpenCV Downloads](http://opencv.org/downloads.html).
33 Run the executable file and specify the folder to unpack the OpenCV (`<OpenCV_INSTALL_DIR>`).
35 ## Building the Samples ##
37 The following procedure uses variabled defined above.
39 ### To build samples ###
41 1. Copy sources from the `<VisionWorks_DIR>\share\sources` to `<BUILD_DIR>`.
43 2. Open Visual Studio's Developer Command Prompt - VS2013 x64 Native Tools Command Prompt.
45 3. Go to the `<BUILD_DIR>`:
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:
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>
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`.
68 ## Running the Samples ##
70 Run each sample of interest by
using the name of the sample as shown in the procedure below.
72 ### To run samples ###
74 - To run `nvx_demo_feature_tracker`, execute:
76 > bin\x64\WinNT\release\nvx_demo_feature_tracker
Range< T > all()
Creates a range that includes all points.