Kinect on Debian - The device is not connected!

Skip to first unread message


Oct 23, 2011, 1:29:10 PM10/23/11
to OpenNI
Hi there!

I installed both the OpenNI (stable) and PrimeSense Sensor Module for
OpenNI (stable). I've followed both README files.
But when I run the samples on my Debian squeeze I got this error

Reading config from: '../../../../Data/SamplesConfig.xml'
One or more of the following nodes could not be enumerated:

Device: PrimeSense/SensorV2/ The device is not connected!

This device is connected, but the green led is blinking! What am I



Oct 23, 2011, 5:43:38 PM10/23/11
to OpenNI
Tested on ubuntu 11.10 and still can get the device connected!! :o


Oct 23, 2011, 5:46:07 PM10/23/11
the green LED is supposed to blink, try to run lsusb, see if the kinect is properly listed

You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Best Regards, and Thank you,


Oct 23, 2011, 9:06:57 PM10/23/11
to OpenNI
I get this error when I ./RedistMaker ! (unstable version + debian

../../../../Source/XnCore/XnBuffer.h:152: error: expected declaration
before ‘}’ token
make[1]: *** [Release/XnBuffer.o] Error 1
make[1]: Leaving directory `/home/paulo/OpenNI/Platform/Linux-x86/
make: *** [XnCore] Error 2

Bus 001 Device 008: ID 045e:02ae Microsoft Corp. Xbox NUI Camera
Bus 001 Device 007: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 001 Device 006: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor

Seems all right!

On 23 Out, 22:46, Hendra <> wrote:
> the green LED is supposed to blink, try to run lsusb, see if the kinect is
> properly listed

Lance Drake

Oct 24, 2011, 3:17:16 PM10/24/11
to OpenNI
Hi OpenNI/PrimeSense people,

The lack of instrumentation (as well as sufficient error reporting) is
a real problem with this software.

At this point, with the new materials recently posted, I am "dead in
the water" because an error is being encountered and there is
absolutely no indication as to what is the complaint.

Everything was FINE until the '' scripts were run for the
three libraries (OpenNI /SensorKinect / NITE - in that order)

The error occurs during the call to
"g_Context.InitFromXmlFile(SAMPLE_XML_PATH, g_ScriptNode, &errors);"
I have managed to determine that the thread of execution gets into
"xnScriptNodeRun" which then calls "DoesPropertyExist" whereupon a bus
error occurs due to (what appears to be) a NULL reference to
'something' - where everything stops and, as TV-cop Barreta used to
say, "Dat's deh name uh DAT tune".

I would like to suggest that the code which kicks off execution be
provided with better error protection and better error reporting.

Also - can anyone suggest what it is that is missing in this picture?
Why is "DoesPropertyExist" failing?

(PS: target = MacOSX)



Oct 24, 2011, 4:08:30 PM10/24/11
to OpenNI
Finally I got everything working both and windows and linux! It was
really dificult! I think you should provide better and updated

Here is the guide I followed. I updated it a little bit. Hope it helps
someone! I got it working perfectly on my Debian.

They recommend Ubuntu 10.10 or greater. I had done it on Debian 6

Download the OpenNI modules appropriate for your operating system from

NOTE: I tried the unstable versions and it worked fine.

You should download these three:
OpenNI binaries
OpenNI compliant middleware binaries
OpenNI compliant hardware binaries

The downloaded files should like these:

Make a new folder called kinect
$ cd
$ mkdir kinect
$ cd kinect
and extract the downloaded files into it.

Update your linux
$ sudo apt-get update
install these files which are necessary for proper installation of
$ sudo apt-get install mono-complete
$ sudo apt-get install libusb-1.0-0-dev
$ sudo apt-get install freeglut3-dev

The extracted folders in step 1 will be
rename it to OpenNI, Sensor, Nite respectively
Download the folder SensorKinect from
Extract the folder to kinect folder and rename it to SensorKinect

Go to the folder OpenNI, Sensor, Nite and run sudo ./
$ cd
$ cd kinect
$ cd OpenNI
$ sudo ./
Check if everything went OK!
$ cd ../Sensor
$ sudo ./
Check if everything went OK!
$ cd ../Nite
$ sudo ./
Check if everything went OK!
Use this license when asked during the installation:
$ cd ../SensorKinect/Platform/Linux-x86/CreateRedist/
$ sudo ./RedistMaker
$ cd ../Redist
$ sudo ./
Check if everything went OK!
You should be done by now. In case of any confusion refer the README
in SensorKinect folder.

Test if everything is working fine
Connect you kinect and run the samples from the OpenNI folder
$ cd ~/kinect/OpenNI/Samples/Bin/Release/
(assuming the kinect folder is in home folder, otherwise go to the
respective folder)
$ ./NiViewer
You should get the depth map and image stream on your window.

Giovanni Saponaro

Oct 24, 2011, 4:42:29 PM10/24/11
On 24 October 2011 21:08, makiavel <> wrote:
> Finally I got everything working both and windows and linux! It was
> really dificult! I think you should provide better and updated
> documentation!!!
> [...]

Dear makiavel,

just a minor note about your guide. As far as I know, you do not need
to install OpenNI's Sensor *and* SensorKinect, as that is redundant
(although it doesn't break things per se).'s version of the Sensor package is used for hardware
different than the Kinect, such as PrimeSense SDK and Asus Xtion PRO.
On the other hand, avin2's patched version of Sensor, called
SensorKinect, works with the Kinect. Therefore, in your case, you only
need SensorKinect.

Also, I agree with you about the state of the documentation: it
certainly has room for improvement.



Oct 25, 2011, 8:13:44 AM10/25/11
to OpenNI
Obrigado Giovanni! Now I understand why I couldn't get my kinect to
work without SensorKinect!
I usually only installed OpenNI, Sensor and NITE... Then I gave
SensorKinect a try and voilá!


On 24 Out, 21:42, Giovanni Saponaro <>

Alessandro Diogo Brückheimer

Oct 25, 2011, 9:58:41 PM10/25/11
We really need to do something to make things simpler.

Alessandro Diogo Brückheimer
alebruck at gmail dot com

エルマン 「Herman」

Oct 30, 2011, 9:57:47 PM10/30/11
Hi there, I have tested this way to install OpenNI / NITE on ubuntu 32 bits and always shows segmentation fault when executing the samples

2011/10/25 Alessandro Diogo Brückheimer <>

エルマン 「Herman」

Oct 30, 2011, 10:08:54 PM10/30/11
Hi there, it works now

when building sensorkinect (avin2), go to SensorKinect/Plattform/Linux-x86/Build

sudo make clean
sudo make 
sudo make install

instead of CreateRedist/ ./RedistMaker

and it worked well for me.


2011/10/30 エルマン 「Herman」 <>


Nov 1, 2011, 2:25:06 AM11/1/11
to OpenNI
I recently upgraded to ubuntu 11.10 and my kinect stopped working even
though everything was fine before. I forget what the exact error
message was something to the effect that it could not So a heads up.

To solve the problem temporarily I did typed:
sudo rmmod gspca_kinect

It seems there is a module that grabs the kinect and won't let OpenNI
use it.

If this works for you you can blacklist the loading of this module
open /etc/modprobe.d/blacklist file and add gspca_kinect using
following syntax:
blacklist gspca_kinect

this will stop it from loading even if you reboot. If you need it
again you can remove the blacklist.

before doing this maybe try an lsmod to see if the module is in fact

Reply all
Reply to author
0 new messages