Skip to content

Windows Installation

Seongjoon Chu edited this page Mar 2, 2017 · 1 revision

First, make sure you have the prerequisites:

  • Visual Studio 2013
  • OpenCv 3.1 (Recommended to install to C:\opencv)
  • Cuda Toolkit 7.5 (Note: Do an ADVANCED INSTALLATION. ONLY install the Toolkit + Integration to Visual Studio. Do NOT install the drivers + other stuff it would normally give you. Once installed, your project properties should look like this: https://i.imgur.com/e7IRtjy.png)

Pull from the master branch.

Editing the Property Pages

  • In Visual Studio, go to Project -> ets2_auto_driving settings

General Configuration Properties

  • Should look like this

C/C++

  • Additional Include Directories: Set to C:\opencv\opencv\build\include;%(AdditionalIncludeDirectories) (assuming you installed opencv to C:\opencv).
  • Code Generation: Set Runtime Library to Multi-threaded.

CUDA C++ Common:

  • Verify it looks like this (if it doesn't, CUDA did not integrate into VS correctly. You will need to reinstall the CUDA Toolkit)

Linker:

  • If you grabbed the libraries from Nuget, then you will need to link this to

...\ChosunTruck\packages\opencvcuda-release.3.1.0\build\native\lib\x64\v120\Release (for release)

or

...\ChosunTruck\packages\opencvcuda-debug.3.1.0\build\native\lib\x64\v120\Debug (for debug)

Other things to verify:

  • Project -> Build Customizations: Ensure that CUDA is checked as well as your Nuget packages.