免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3068 | 回复: 2
打印 上一主题 下一主题

编译摄像头驱动程序时出错, [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-27 22:43 |只看该作者 |倒序浏览
我的linux内核是2.4.18, 摄像头芯片zc0301p, 所用驱动是从网上下的万能驱动spca5xx
编译摄像头驱动程序时出错,如下所示:请高手帮忙!
[root@localhost spca5xx-20060501]# make
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 `spca50x_read_proc':
drivers/usb/spca5xx.c:1096: structure has no member named `seq'
drivers/usb/spca5xx.c: In function `spca5xx_mmap':
drivers/usb/spca5xx.c:3235: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
drivers/usb/spca5xx.c:3235: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c:3235: too few arguments to function `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c: At top level:
drivers/usb/spca5xx.c:3280: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5655: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5656: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5657: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5658: warning: braces around scalar initializer
drivers/usb/spca5xx.c:5658: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:5658: warning: excess elements in scalar initializer
drivers/usb/spca5xx.c:5658: 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

论坛徽章:
0
2 [报告]
发表于 2007-04-28 13:04 |只看该作者
是否驱动版本与内核版本不兼容?

论坛徽章:
0
3 [报告]
发表于 2007-05-11 10:05 |只看该作者
redhat9内核不支持这个驱动,自己下载一个新的内核重新编译一下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP