当前位置: 技术问答>linux和unix
【求救】编译spca5xx出现问题
来源: 互联网 发布时间:2015-11-17
本文导语: 学着在linux下安装摄像头驱动,但是进行到编译阶段就出现问题,请大虾指点迷津,感激感激。 linux:RH9 driver:spca5xx-20060301 安装步骤: 1、编译内核 2、spca5xx-20060301/make clean 3、spca5xx-20060301/make 此时编译的打印信息...
学着在linux下安装摄像头驱动,但是进行到编译阶段就出现问题,请大虾指点迷津,感激感激。
linux:RH9
driver:spca5xx-20060301
安装步骤:
1、编译内核
2、spca5xx-20060301/make clean
3、spca5xx-20060301/make
此时编译的打印信息如下:
[root@EnotsComputer spca5xx-20060301]# make
Compiling drivers/usb/spcadecoder.c
Compiling drivers/usb/spca5xx.c
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
from drivers/usb/spca5xx.c:46:
/lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-8/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
drivers/usb/spca5xx.c: In function `spca5xx_mmap':
drivers/usb/spca5xx.c:5081: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
drivers/usb/spca5xx.c:5081: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c:5081: too few arguments to function `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c: At top level:
drivers/usb/spca5xx.c:5126: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8426: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8427: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8428: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8429: warning: braces around scalar initializer
drivers/usb/spca5xx.c:8429: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:8429: warning: excess elements in scalar initializer
drivers/usb/spca5xx.c:8429: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:150: warning: `bright' defined but not used
drivers/usb/spca5xx.c:151: warning: `contrast' defined but not used
make: *** [drivers/usb/spca5xx.o] Error 1
linux:RH9
driver:spca5xx-20060301
安装步骤:
1、编译内核
2、spca5xx-20060301/make clean
3、spca5xx-20060301/make
此时编译的打印信息如下:
[root@EnotsComputer spca5xx-20060301]# make
Compiling drivers/usb/spcadecoder.c
Compiling drivers/usb/spca5xx.c
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
from drivers/usb/spca5xx.c:46:
/lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-8/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
drivers/usb/spca5xx.c: In function `spca5xx_mmap':
drivers/usb/spca5xx.c:5081: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
drivers/usb/spca5xx.c:5081: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c:5081: too few arguments to function `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c: At top level:
drivers/usb/spca5xx.c:5126: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8426: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8427: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8428: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:8429: warning: braces around scalar initializer
drivers/usb/spca5xx.c:8429: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:8429: warning: excess elements in scalar initializer
drivers/usb/spca5xx.c:8429: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:150: warning: `bright' defined but not used
drivers/usb/spca5xx.c:151: warning: `contrast' defined but not used
make: *** [drivers/usb/spca5xx.o] Error 1
|
drivers/usb/spca5xx.c:5081: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c:5081: too few arguments to function `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c: At top level:
这里的错
但是我没用过spca
帮你顶吧
drivers/usb/spca5xx.c:5081: too few arguments to function `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c: At top level:
这里的错
但是我没用过spca
帮你顶吧
|
Module compile outside the kernel tree but need the source of your running
kernel installed and configured.
be sure your kernel include usb and v4l stuff
这些步骤有吗?
这些文字来自spca5xx目录下 INSTALL 文件
kernel installed and configured.
be sure your kernel include usb and v4l stuff
这些步骤有吗?
这些文字来自spca5xx目录下 INSTALL 文件