Getting a lot of errors when using Kinect SDK on OpenFrameworks project

736 views Asked by At

Basically I'm trying to use the Kinect SDK on an OpenFrameworks project in Visual Studio 2012 Express but I'm getting a lot of errors when trying to include the NuiApi.

So what I've done until now is include the following directories:

C:\Program Files\Microsoft SDKs\Kinect\v1.8\inc in Project -> Configuration Properties -> C/C++ -> General

C:\Program Files\Microsoft SDKs\Kinect\v1.8\lib in Project -> Configuration Properties -> Linker -> General

C:\Program Files\Microsoft SDKs\Kinect\v1.8\lib\x86\Kinect10.lib in Project -> Configuration Properties -> Linker -> Input

And when I try to include the API like this:

#include <NuiApi.h>

I get a lot of errors the first one is this:

Error   3   error C2146: syntax error : missing ';' before identifier 'INuiAudioBeam'   c:\program files\microsoft sdks\kinect\v1.8\inc\nuisensor.h 46  1   mySketch

I also get the same error if I try adding the ofxKinectNui addon.

I'm using the Kinect SDK 1.8

1

There are 1 answers

0
Carlos Bergen On BEST ANSWER

The problem was the ofxUI addon I was using for the GUI, it worked when I removed this addon. I have not found a way to get both working at the same time.