作者:林原伟662532 | 来源:互联网 | 2017-11-08 03:54
#查看usb摄像头id,这是个Microdia的
debian:~# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0c45:613c Microdia
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
#下载源代码
debian:~# apt-get install spca5xx-source
#在readme里有这句,说明支持我的摄像头
{USB_DEVICE(0×0c45, 0×613c)}, /* Sonix Pccam168 */
debian:~# cd /usr/src/spca5xx
debian:/usr/src/spca5xx# make
Building SPCA5XX driver for 2.5/2.6 kernel.
#出现错误
linux/config.h: No such file or directory
#查了一下,2.6.19以后的都不会有这个文件,我的是2.6.21
#找到/usr/src/spca5xx/drivers/usb/spca5xx.c 里头的这句
“ #include
”
#前面加上两杠注释掉它,象这样
“ //#include ”
debian:/usr/src/spca5xx# make
debian:/usr/src/spca5xx# make install
debian:/usr/src/spca5xx# lsmod
Module Size Used by
spca5xx 657872 0
sn9c102 108556 0
compat_ioctl32 13056 1 sn9c102
videodev 32000 2 spca5xx,sn9c102
v4l1_compat 16260 1 videodev
v4l2_common 23424 3 sn9c102,compat_ioctl32,videodev
#可以用kopete,但好像不能麦克风,gaim可以麦克风好像不能webcam,
#也可以视频电话用gnomemeeting,现在改名为ekiga
debian:~# apt-get install ekiga