cinder / Cinder-Kinect

Kinect support for Cinder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue on OS X 10.8.3 with last Kinect model

killkrt opened this issue · comments

Hi,

I am on OS X 10.8.3 using Xcode 4.6.2 and I have a last model of XBOX 360 Kinect (bought just few days ago). I read around (on openFrameworks forum) that last model could cause some problem related to the motor/accelerator sensor.
I found a fix in branch "kinect-device-fix" in repository ofxKinect:
https://github.com/ofTheo/ofxKinect/tree/kinect-device-fix

And I tested with some oF examples and it seems to work. I tried to port this fix in your code, but I got some errors.

Anyway this is the issues that I get when I try to execute the example "Kinect Basics" (as it is, without any /fix/):
Console output reports:

There are 1 Kinects connected.
libc++abi.dylib: terminate called throwing an exception

Programs throws an exception at CinderFreenect at line 154.

Debugging a little the code it seems that the code at usb_libusb10.c at line 194 (and below) fails while finding a /compatible/ Kincet device.
The value of ctx->enabled_subdevices is always equal to 3 so it matches only the condition related to the motor (and skip the camera one), but since desc->idProduct is 708 it doesn't match the PID_NUI_MOTOR value.

I've tried to bypass this condition, but programs still to terminate with the same exception.

/Porting/ (I just try to copy the difference from oF implementation and your) the oF fixing I got the error reported here:
http://forum.libcinder.org/topic/os-x-problem-with-new-kinect

Could you help me?

Moreover I noticed that example "KinectPointCloudGLApp.cpp" doesn't compile due to an error at line 143:
Call to non-static member function without an object argument

Thank you!

Hi - I fixed the compile error on KinectPointCloudGLApp, but I don't have immediate access to one of the new model Kinects in order to track down this error. I'll work on getting access to one...

Thank you very much! I'm looking forward to hearing from you! ;-)

P.S.:
I found that the right code of the model should be 1473, I know another guy is working on this fix for OpenKinect: git://github.com/wizgrav/libfreenect.git

@wizgrav seems to have fixed the issues on Mac OS X, please see: OpenKinect/libfreenect#325

@killkrt the Cinder-Kinect freenect folder is different in structure from wizgrav's libfreenect. I replaced libfreenect.h with wizgravs but it still gives me the same error. How did you make this work?

I have the libfreenect examples running, but not the Cinder-Kinect basic example.