MYNT EYE D SDK  1.7.1
http://www.myntai.com/mynteye/depth
How to use SDK with Qt Creator

This tutorial will create a Qt project with Qt Creator to start using SDK.

You could find the project demo in <sdk>/platforms/projects/qtcreator directory.

Preparation

  • Windows: install the win pack of SDK
  • Linux: build from source and make install

Create Project

Open Qt Creator, then New Project,

new_project.png

Choose Qt Widgets Application,

new_project2.png

Set project location and its name,

new_project3.png

Select the build kits,

new_project4.png

Then, it will generate the skeleton source files,

new_project5.png
new_project6.png

Finally, you will see the new project like this,

new_project7.png

Config Project

Edit mynteyed_demo.pro to add INCLUDEPATH and LIBS.

win32 {
SDK_ROOT = "$$(MYNTEYED_SDK_ROOT)"
isEmpty(SDK_ROOT) {
error( "MYNTEYED_SDK_ROOT not found, please install SDK firstly" )
}
message("SDK_ROOT: $$SDK_ROOT")
INCLUDEPATH += "$$SDK_ROOT/include"
LIBS += "$$SDK_ROOT/lib/mynteye_depth.lib"
}
unix {
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib -lmynteye_depth
}

Start using SDK

Include the headers of SDK and start using its APIs, could see the project demo.

Windows

Should select "Release" to run the project.

release_run.png

Then you will see the main window,

run_win.png

Linux

Run the project and you will see the main window,

run_linux.png