ofxKinectForWindows2 compilation error

Hi, community.

I tried to compile project using this addod https://github.com/elliotwoods/ofxKinectForWindows2. I followed steps as described here http://rbarraza.com/setting-up-kinect-2-for-openframeworks/ and tried both methods with building the ready example and generating my own project using Project Generator. In both cases I get a lot of such errors:

error C3668: 'ofxKinectForWindows2::Source::BaseImage<PixelType,ReaderType,FrameType>::isUsingTexture' : method with override specifier 'override' did not override any base class methods

If I remove the overriding - I get another errors. What should I do to make this addon working?

I use VS Extended 2012.

Are you using OF 0.8.4 or 0.9? I’m not sure it will work ‘out of the box’ with 0.9

Hi @aoleynikov. I prefer the technique mentioned in Rick’s next article where you don’t select the addon in the projectGenerator, and instead add it later by hand along with the property. I think it should work either way though.

If you’re using OF 0.8.4, make sure you’re on the 0.8.4 branch of the addon.

If you’re using OF 0.9 from GitHub, then the master branch of the addon should work (hopefully example & exampleBodyIndexColor work too :blush:) though you will have to use a newer version of VS (2015 definitely works, 2013 might).

Let me know if that works!

Hi, @csw, @mattfelsen, sorry for this delay. It was my error - I tried using 0.9 version, 0.8.4 worked well. :slight_smile: