- 论坛徽章:
- 0
|
以下是我的步骤:修改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 |
|