Error trying to compile ofxNI2

Hi,
I’m trying to compile ofxNI2 https://github.com/fred-dev/ofxNI2 in Windows 10 ofv0.10.1.
I get this error but I don’t know how to fix it:

[ fatal ] ofxNI2::Device: invalid device id
Exception thrown at 0x00007FF933C9C608 (OpenNI2.dll) in example-user-tracker_debug.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
Unhandled exception at 0x00007FF933C9C608 (OpenNI2.dll) in example-user-tracker_debug.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

Has someone already compiled OpenNI for Mac or Windows 10? Any recommendation or suggestion?
Best
David

In Mac I’m having this error:

Assertion failed: (abs(aspect - std::numeric_limits::epsilon()) > static_cast(0)), function perspectiveRH, file …/…/…/…/libs/glm/include/glm/gtx/…/gtc/matrix_transform.inl, line 260.

assert(abs(aspect - std::numeric_limits<T>::epsilon()) > static_cast<T>(0));

Is there another way tu run OpenNI2 using Kinect2 in OF?

I tested this version https://github.com/pierrep/ofxNI2
And it works very well with of_nightly on Mac
Issue resolved

1 Like