I’ve been following the guide microsoft have made for setting up the Kinect SDK with c++. The steps they have created are as follows.
- Include windows.h in your source code.
- To use the NUI API, include MSR_NuiApi.h.
Location: Program Files\Microsoft Research KinectSDK\inc - To use the Kinect Audio API, include MSRKinectAudio.h.
Location: Program Files\Microsoft Research KinectSDK\inc - Link to MSRKinectNUI.lib.
Location: Program Files\Microsoft Research KinectSDK\lib - Ensure that the beta SDK DLLs are on your path when you run your project.
Location: \Program Files\Microsoft Research KinectSDK
I believe I’ve done everything apart from step 5. Could anyone give me more details on what this means and how to do this?
thanks in advance,
John
To do this, you probably want to add that path to your project
;C:\Program Files\Microsoft Research KinectSDK\incto the end of the include paths;C:\Program Files\Microsoft Research KinectSDK\libto the end of the libraries pathsthen add
to the includes at top of your source file. If you’re using precompiled headers then you should put it below the stdafx.h include, or just add it to stdafx.h instead.
This means that your binary needs to be able to find these files at runtime.
The easiest way to do this is to add them to your system path; go to
;then the path givenYou may then need to restart Visual Studio to pick this up, or it should be registered when you open a new command prompt.
Or, if you don’t want to change the system settings, you can e.g. add it to an open command prompt with
or you can work out exactly which files there are necessary and copy them into the same directory as your binary, etc.