-
Notifications
You must be signed in to change notification settings - Fork 104
Windows Installation
Seongjoon Chu edited this page Mar 2, 2017
·
1 revision
- 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)
-
To save time, I recommend you create a project file with these settings. Make sure to place this in the "ets2_auto_driving" sub-directory.
-
Use Nuget Package Manager to grab these two packages:
- In Visual Studio, go to
Project -> ets2_auto_driving settings
- Should look like this
- 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.
- Verify it looks like this (if it doesn't, CUDA did not integrate into VS correctly. You will need to reinstall the CUDA Toolkit)
- 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)
- Project -> Build Customizations: Ensure that CUDA is checked as well as your Nuget packages.