我有摄像头Veo Stingray

  • Ox545:8333(供应商和产品ID)

我有Raspberry Pi模型A uname -r = Linux raspberrypi 4.1.15#830 Tue Dec 15 16:58:28 GMT 2015 armv6l GNU / Linux

gspca驱动程序来自http://mxhaard.free.fr/spca5xx.html列出这个网络摄像头是兼容所以我说'yay'我wget和xzf tarball我下载rpi-source我下载rpi-update

执行sudo rpi-update有关rpi-update的详细信息,请参阅https://github.com/Hexxeh/rpi-update . 您必须使用最新的固件和相关内核才能执行下一步 . 安装并运行rpi-source以安装构建您正在运行的最新内核的源代码 . 这将在/ lib / modules中为正在运行的内核创建正确的条目 . 注意:您不需要root用户来运行它,但是脚本将使用sudo执行某些任务,并且在脚本执行期间将请求root密码 .

然后我会运行rpi-source并且有关于编译器不同的错误(我从一个内核编译使用的那个)所以我确保通过安装替代方案使用相同的编译器

sudo update-alternatives --install / usr / bin / gcc gcc / usr / bin / gcc 4.x

然后我进入gspcav1文件夹并以root身份运行./gspca_build

错误说:

/home/pi/gspcav1-20071224# ./gspca_build 

 REMOVE the old module if present
rmmod: ERROR: Module gspca is not currently loaded

 CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd  *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err

 COMPILE gspca Please Wait ....!!

 INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat ‘gspca.ko’: No such file or directory
Makefile:47: recipe for target 'install' failed
make: *** [install] Error 1

 LOAD gspca in memory 
modprobe: FATAL: Module gspca not found.

 PRINT COMPILATION MESSAGES if ERRORS look kgspca.err 
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/pi/gspcav1-20071224 CC=cc modules
make[1]: Entering directory '/root/linux-853eff4e9b369cdc20be7c538bc5a5291eeab31d'
  CC [M]  /home/pi/gspcav1-20071224/gspca_core.o
/home/pi/gspcav1-20071224/gspca_core.c:37:26: fatal error: linux/config.h: No such file or directory
 #include <linux/config.h>
                          ^
compilation terminated.
scripts/Makefile.build:258: recipe for target '/home/pi/gspcav1-20071224/gspca_core.o' failed
make[2]: *** [/home/pi/gspcav1-20071224/gspca_core.o] Error 1
Makefile:1384: recipe for target '_module_/home/pi/gspcav1-20071224' failed
make[1]: *** [_module_/home/pi/gspcav1-20071224] Error 2
make[1]: Leaving directory '/root/linux-853eff4e9b369cdc20be7c538bc5a5291eeab31d'
Makefile:44: recipe for target 'default' failed
make: *** [default] Error 2

我知道简单的答案是获得兼容的罗技凸轮,我明显想要硬答案 . 谢谢!