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

Failed in Make step because no such file as mach/vcio.h, no recipe target for bcm2835... #20

Closed tiancovici closed 9 years ago

tiancovici commented 9 years ago

It's a consistent problem and I'm not sure what I'm missing

CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: 'include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h CC drivers/cpufreq/bcm2835-cpufreq.o drivers/cpufreq/bcm2835-cpufreq.c:29:23: fatal error: mach/vcio.h: No such file or directory compilation terminated. scripts/Makefile.build:308: recipe for target 'drivers/cpufreq/bcm2835-cpufreq.o' failed make[2]: * [drivers/cpufreq/bcm2835-cpufreq.o] Error 1 scripts/Makefile.build:455: recipe for target 'drivers/cpufreq' failed make[1]: * [drivers/cpufreq] Error 2 Makefile:797: recipe for target 'drivers' failed make: *\ [drivers] Error 2

currently doing this in sudo -s and it's located in home/pi/linux or ~/linux

tiancovici commented 9 years ago

Totally rookie mistake, On the following step:

find out which kernel you are using – in my case 3.12.20+

uname -r

get the source – in my case 3.12.y (change if needed)

wget https://github.com/raspberrypi/linux/archive/rpi-3.12.y.tar.gz tar xfvz rpi-3.12.y.tar.gz mv linux-rpi-3.12.y linux

I had a 3.18.. version yet I wget the 3.12 version, I didn't realize I should've done

wget https://github.com/raspberrypi/linux/archive/rpi-3.18.y.tar.gz tar xfvz rpi-3.18.y.tar.gz mv linux-rpi-3.18.y linux