CC drivers/media/video/gspcav1/gspca_core.o
In file included from drivers/media/video/gspcav1/gspca_core.c:847:
drivers/media/video/gspcav1/utils/spcausb.h: In function 'spca5xxRegRead':
drivers/media/video/gspcav1/utils/spcausb.h:95: error: implicit declaration of function 'info'
drivers/media/video/gspcav1/utils/spcausb.h: In function 'spca_set_interface':
drivers/media/video/gspcav1/utils/spcausb.h:278: error: implicit declaration of function 'warn'
In file included from drivers/media/video/gspcav1/gspca_core.c:855:
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_init':
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:122: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:136: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:141: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:148: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:176: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_start':
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:214: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:230: error: called object 'info' is not a function
drivers/media/video/gspcav1/gspca_core.c: In function 'spca5xx_ioctl':
drivers/media/video/gspcav1/gspca_core.c:2465: error: implicit declaration of function 'video_usercopy'
drivers/media/video/gspcav1/gspca_core.c: At top level:
drivers/media/video/gspcav1/gspca_core.c:2611: error: unknown field 'owner' specified in initializer
drivers/media/video/gspcav1/gspca_core.c:2611: warning: initialization from incompatible pointer type
drivers/media/video/gspcav1/gspca_core.c:2613: error: unknown field 'type' specified in initializer
drivers/media/video/gspcav1/gspca_core.c:2617: warning: initialization from incompatible pointer type
drivers/media/video/gspcav1/gspca_core.c: In function 'spca50x_create_sysfs':
drivers/media/video/gspcav1/gspca_core.c:2771: error: implicit declaration of function 'video_device_create_file'
drivers/media/video/gspcav1/gspca_core.c:2782: error: implicit declaration of function 'video_device_remove_file'
drivers/media/video/gspcav1/gspca_core.c: In function 'spca5xx_probe':
drivers/media/video/gspcav1/gspca_core.c:4303: error: incompatible types when assigning to type 'struct device' from type 'struct device *'
make[4]: *** [drivers/media/video/gspcav1/gspca_core.o] Error 1
make[3]: *** [drivers/media/video/gspcav1] Error 2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2
我的摄像头型号是中星微 345。 照着《天嵌科技出品-Linux移植之Step By Step_V4.5_20100605》这个里面的USB摄像头移植的知道在做。
内核:2.6.30.4
驱动包:gspcav1-20071224
编译的时候出错了。
make zImage
CHK include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
CC drivers/media/video/gspcavl/gspca_core.o
In file included from drivers/media/video/gspcavl/gspca_core.c:847:
drivers/media/video/gspcavl/utils/spcausb.h: In function 'spca_set_interface':
drivers/media/video/gspcavl/utils/spcausb.h:278: error: implicit declaration of function 'warn'
drivers/media/video/gspcavl/gspca_core.c: In function 'spca5xx_ioctl':
drivers/media/video/gspcavl/gspca_core.c:2465: error: implicit declaration of function 'video_usercopy'
drivers/media/video/gspcavl/gspca_core.c: At top level:
drivers/media/video/gspcavl/gspca_core.c:2611: error: unknown field 'owner' specified in initializer
drivers/media/video/gspcavl/gspca_core.c:2611: warning: initialization from incompatible pointer type
drivers/media/video/gspcavl/gspca_core.c:2613: error: unknown field 'type' specified in initializer
drivers/media/video/gspcavl/gspca_core.c:2617: warning: initialization from incompatible pointer type
drivers/media/video/gspcavl/gspca_core.c: In function 'spca50x_create_sysfs':
drivers/media/video/gspcavl/gspca_core.c:2771: error: implicit declaration of function 'video_device_create_file'
drivers/media/video/gspcavl/gspca_core.c:2782: error: implicit declaration of function 'video_device_remove_file'
drivers/media/video/gspcavl/gspca_core.c: In function 'gspca_attach_bridge':
drivers/media/video/gspcavl/gspca_core.c:2804: error: implicit declaration of function 'info'
drivers/media/video/gspcavl/gspca_core.c: In function 'spca5xx_probe':
drivers/media/video/gspcavl/gspca_core.c:4303: error: incompatible types in assignment
make[4]: *** [drivers/media/video/gspcavl/gspca_core.o] 错误 1
make[3]: *** [drivers/media/video/gspcavl] 错误 2
make[2]: *** [drivers/media/video] 错误 2
make[1]: *** [drivers/media] 错误 2
make: *** [drivers] 错误 2
[root@localhost linux-2.6.30.4]#