xxorde / librekinect

Depth data from a kinect sensor! Small and fast kernel driver. Also for embedded devices like the raspberry pi!
407 stars 68 forks source link

Compilation error gspca.c #14

Open JanMisker opened 9 years ago

JanMisker commented 9 years ago

V4L2_FL_USE_FH_PRIO is not a known symbol anymore, commenting out line 2070 fixed it for me. https://github.com/xxorde/librekinect/blob/master/gspca.c#L2070

I'm on a Raspberry Pi 2 with Linux 3.18.5-v7

Shruikan2569 commented 9 years ago

@JanMisker
Please would you share with me how did you managed this whole thing to work? I'm a bit lame at Linux. Where did you get the kernel source? What were the steps you did to make the Kinect communicate with the Pi? Please help me!

PS.: Anyway I think it would be a big help for those who got an RPi 2!

sjobeek commented 9 years ago

@Shruikan2569 The instructions in the readme file work for the most part.

You'll need to change the source file you download. I used: wget https://github.com/raspberrypi/linux/archive/rpi-3.18.y.tar.gz

Also when you build the kernel, use make -j4 instead of make to use all four cores. Still took about an hour to build.

Make sure you're using the proper paths for lines like echo "kernel=linux-3.18.y" >> /boot/config.txt

When you build librekinect itself, you'll need to modify the makefile to work on armv7, and fix one line in the source code of gspca.c See #15

After you build librekinect successfully, you need to run make load before plugging in the kinect. You'll probably see some errors on the make load, but it still worked for me.

Shruikan2569 commented 9 years ago

@sjobeek Cool, thanks! I'll give it a try soon! Anyway if this works, and I can get the IR image with camorama just like xxorde said in the README, how can I get the raw depth image with the distance values? Eg. with Python?