免费注册 查看新帖 |

Chinaunix

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

编译摄相头驱动gspcav1-20071224出错,请高手帮忙 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-10-19 18:52 |只看该作者 |倒序浏览
以下是我的步骤:修改makefile

KERNELDIR := /home/zilong/mkkernel/linux-2.6.24
PWD  := $(shell pwd)
MODULE_INSTALLDIR = $(KERNELDIR)/drivers/usb/media/
MODULE_INSTALLDIR2 = $(KERNELDIR)/drivers/media/video/
CROSS_COMPILE_CC := /usr/local/arm/3.4.1/bin/arm-linux-gcc
default:
        $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) CC=$(CROSS_COMPILE_CC) modules

make
出现以下错误:

[root@localhost gspcav1-20071224]# make
make -C /home/zilong/mkkernel/linux-2.6.24 SUBDIRS=/home/zilong/mkkernel/camera/gspcav1-20071224 CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc modules
make[1]: Entering directory `/home/zilong/mkkernel/linux-2.6.24'
  CC [M]  /home/zilong/mkkernel/camera/gspcav1-20071224/gspca_core.o
In file included from /home/zilong/mkkernel/camera/gspcav1-20071224/gspca_core.c:848:
/home/zilong/mkkernel/camera/gspcav1-20071224/Sunplus/spca506.h: In function `spca506_SetNormeInput':
/home/zilong/mkkernel/camera/gspcav1-20071224/Sunplus/spca506.h:120: error: `VIDEO_MODE_NTSC' undeclared (first use in this function)
/home/zilong/mkkernel/camera/gspcav1-20071224/Sunplus/spca506.h:120: error: (Each undeclared identifier is reported only once
/home/zilong/mkkernel/camera/gspcav1-20071224/Sunplus/spca506.h:120: error: for each function it appears in.)
/home/zilong/mkkernel/camera/gspcav1-20071224/Sunplus/spca506.h:131: error: `VIDEO_MODE_PAL' undeclared (first use in this function)
/home/zilong/mkkernel/camera/gspcav1-20071224/Sunplus/spca506.h:137: error: `VIDEO_MODE_SECAM' undeclared (first use in this function)
/home/zilong/mkkernel/camera/gspcav1-20071224/gspca_core.c: In function `spca5xx_get_depth':
/home/zilong/mkkernel/camera/gspcav1-20071224/gspca_core.c:1093: error: `VIDEO_PALETTE_RGB565' undeclared (first use in this function)
/home/zilong/mkkernel/camera/gspcav1-20071224/gspca_core.c:1095: error: `VIDEO_PALETTE_RGB24' undeclared (first use in this function)
/home/zilong/mkkernel/camera/gspcav1-20071224/gspca_core.c:1101: error: `VIDEO_PALETTE_YUV420P' undeclared (first use in this function)
/home/zilong/mkkernel/camera/gspcav1-20071224/gspca_core.c:1104: error: `VIDEO_PALETTE_RGB32' undeclared (first use in this function)


请问如何解决?哪位高手移植过摄相头驱动的,可否发个笔记给我?我的邮箱tancotqlinux@126.com

论坛徽章:
0
2 [报告]
发表于 2009-10-19 19:13 |只看该作者
一堆undeclared (first use in this function) ,明显漏了头文件。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP