Glamočanin.net

About

Stuff i did

Kinect on Linux
15.12.2011

Just a short blurb for the crawlers, the answer was quite tricky to find.

For connecting a Kinect device to a linux box (i'm using gentoo) you have great tutorials online, but for a specific error "Failed to set USB interface!", there is little advice.

The problems occurs after you compile and install everything (oh yeah you have to copy the commonCppMakefile and its friends manually from openNi/platform/.../build/common to /usr/include/ni).

It is caused by having the gspca_kinect kernel driver, which provides a v4l video stream from the kinect, but seems to interfere with other kinnect operations. You must:
- unplug the kinnect
- remove the driver from memory, run (as root):
  rmmod gpsca_kinect
- remove the driver file, run:
  rm /lib/modules/3.1.0-gentoo/kernel/drivers/media/video/gspca/gspca_kinect.ko
- plug the kinect back in and ENJOY!