Skip to content

Latest commit

 

History

History
84 lines (49 loc) · 1.95 KB

project_vs2017.rst

File metadata and controls

84 lines (49 loc) · 1.95 KB

How to use SDK with Visual Studio 2017

This tutorial will create a project with Visual Studio 2017 to start using SDK.

You could find the project demo in <sdk>/samples/simple_demo/project_vs2017 directory.

Preparation

  • Windows: install the win pack of SDK

Create Project

Open Visual Studio 2017, then File > New > Project,

image

Select “Windows Console Application”, set the project’s name and location, click “OK”,

image

Finally, you will see the new project like this,

image

Config Properties

Right click the project, and open its “Properties” window,

image

Change “Configuration” to “All Configurations”, then add the following paths to “Additional Include Directories”,

$(MYNTEYED_SDK_ROOT)\include
$(MYNTEYED_SDK_ROOT)\3rdparty\opencv\build\include

image

Add the following definitions to “Preprocessor Definitions”,

WITH_OPENCV
WITH_OPENCV3

image

Add the following paths to “Additional Library Directories”,

$(MYNTEYED_SDK_ROOT)\lib
$(MYNTEYED_SDK_ROOT)\3rdparty\opencv\build\x64\vc15\lib

image

Add the following libs to “Additional Dependencies”,

mynteye_depth.lib
opencv_world343.lib

image

Start using SDK

Include the headers of SDK and start using its APIs,

image

Select “Release x64” to run the project.