librekinect icon indicating copy to clipboard operation
librekinect copied to clipboard

Kinect for 360 or Kinect for windows

Open danielfhb opened this issue 11 years ago • 3 comments

Hi xxorde I dont know if this is the correct way to ask something but i only find this. I have been trying to install the driver on a raspberry pi B for like an entire week but i always get and error in the "make load" of the driver and its the same or similar error that someone post in other issue but in the end i couldnt find a solution. Im using the raspbian OS and the kernel version is 3.12.29

The "make" process goes well but the "make load" not root@raspberrypi:/home/pi# cd librekinect root@raspberrypi:/home/pi/librekinect# make make pc make[1]: Entering directory '/home/pi/librekinect' make -C /lib/modules/3.12.29/build M=/home/pi/librekinect modules make[2]: Entering directory '/usr/src/linux' Building modules, stage 2. MODPOST 2 modules make[2]: Leaving directory '/usr/src/linux' make[1]: Leaving directory '/home/pi/librekinect' root@raspberrypi:/home/pi/librekinect# make load make unload_drivers make[1]: Entering directory '/home/pi/librekinect' sudo sh unload_drivers.sh Error: Module kinect is not currently loaded Error: Module gspca is not currently loaded Error: Module gspca_main is in use by: gspca_kinect Error: Module gspca is not currently loaded Error: Module kinect is not currently loaded make[1]: Leaving directory '/home/pi/librekinect' sudo modprobe videodev sudo insmod gspca.ko Error: could not insert module gspca.ko: Invalid module format Makefile:42: recipe for target 'load' failed make: *** [load] Error 1 root@raspberrypi:/home/pi/librekinect#

Do you know what is wrong and how i could fix it?

Either way im really need to get working the kinect with the raspberry pi, so with the kinect for xbox 360 I "lsusb" and see that the 3 devices were recognized the motor, audio and camera. So i decided to install and run guvcview to see what i get. Then to my surprise i was seeing a stream of the depth sensor in my screen, so i think at least the driver is working or some parts of it. Then I tried to the same thing but with the kinect for windows but when i "lsusb" it only shows that there were 2 devices of microsft corp. so i decided to run guvcview again, but this time i get the stream of the RGB camera and not the one from the depth sensor. So i want to ask you if this should work with both kinects or what should i do get this work on the kinect for windows? (this is because i only own the windows version and the xbox 360 version isnt mine)

In advance thanks to the ones who knows something that would help me.

danielfhb avatar Oct 18 '14 23:10 danielfhb

I got the same error when I ran "make load". Could someone help us please?

daniel, are you saying that even with the error you got the Kinect for XBOX 360 to work?

jtanios avatar Dec 07 '14 19:12 jtanios

Sorry i didnt see your reply till today but Yes I got the kinect xbox 360 to work. First, before you ran the make and make load be sure you have connected to kinect to the raspberry PI, or this wont work. Then run the "make" comand using sudo and after that, ran the "make load" comand 1 or 2 times and using sudo in one of them sometimes work for me. The second time I ran the make load I dont get all this errors just a few of them. Thats the advice I can give you and its strange that is the way is working for me.

Also I then use vlc or guvcview to make sure that the camera im using is the depth sensor. If you are using ssh or a remote desktop you may have problems watching the camera. I think is too much data to transfer and get a good stream.

Also my last problem is that I have to do this process each time I start the RPI, its like when it turns off the instalation its gone.

danielfhb avatar Dec 15 '14 19:12 danielfhb

Hmmm ... that must have been it. I didn't have the Kinect connected while running make and make load. I'll try it again.

I can get the regular camera feed now though. But my kernel.log is filling up with this error: gspca_main: isoc data error: [0] len=0, status=-63

I'm guessing it's probably because it didn't build correctly. Thanks for the tip!

jtanios avatar Dec 15 '14 19:12 jtanios