编译spca5xx出现问题

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
回复
seanfj
帖子: 90
注册时间: 2007-02-09 23:36
来自: China
送出感谢: 0
接收感谢: 0
联系:

编译spca5xx出现问题

#1

帖子 seanfj » 2007-04-22 16:55

sean@Sean-PC:~/Desktop/spca5xx-20060501$ make CC=gcc-3.4
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/sean/Desktop/spca5xx-20060501 CC=gcc-3.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CC [M] /home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.o
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: linux/config.h: No such file or directory
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca50x_init_isoc':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca5xx_open':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:2392: warning: implicit declaration of function `video_devdata'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:2392: warning: initialization makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:2397: warning: implicit declaration of function `video_get_drvdata'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:2397: warning: initialization makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca5xx_close':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:2487: warning: initialization makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca5xx_do_ioctl':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:2547: warning: initialization makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca5xx_ioctl':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3091: warning: implicit declaration of function `video_usercopy'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca5xx_read':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3110: warning: initialization makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca5xx_mmap':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3209: warning: initialization makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: At top level:
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3261: error: variable `spca50x_template' has initializer but incomplete type
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3262: error: unknown field `owner' specified in initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3262: warning: excess elements in struct initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3262: warning: (near initialization for `spca50x_template')
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3263: error: unknown field `name' specified in initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3263: warning: excess elements in struct initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3263: warning: (near initialization for `spca50x_template')
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3264: error: unknown field `type' specified in initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3264: warning: excess elements in struct initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3264: warning: (near initialization for `spca50x_template')
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3265: error: unknown field `hardware' specified in initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3265: warning: excess elements in struct initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3265: warning: (near initialization for `spca50x_template')
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3266: error: unknown field `fops' specified in initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3266: warning: excess elements in struct initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3266: warning: (near initialization for `spca50x_template')
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3268: error: unknown field `release' specified in initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3268: error: `video_device_release' undeclared here (not in a function)
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3268: warning: excess elements in struct initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3268: warning: (near initialization for `spca50x_template')
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3270: error: unknown field `minor' specified in initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3270: warning: excess elements in struct initializer
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3270: warning: (near initialization for `spca50x_template')
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `cd_to_spca50x':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3338: warning: implicit declaration of function `to_video_device'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3338: warning: initialization makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3339: warning: return makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca50x_create_sysfs':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3448: warning: implicit declaration of function `video_device_create_file'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: In function `spca5xx_probe':
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5504: warning: implicit declaration of function `video_device_alloc'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5504: warning: assignment makes pointer from integer without a cast
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of `sizeof' to incomplete type `video_device'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of `sizeof' to incomplete type `video_device'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of `sizeof' to incomplete type `video_device'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5509: error: dereferencing pointer to incomplete type
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5511: warning: implicit declaration of function `video_set_drvdata'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5516: warning: implicit declaration of function `video_register_device'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: `VFL_TYPE_GRABBER' undeclared (first use in this function)
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: (Each undeclared identifier is reported only once
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: for each function it appears in.)
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5545: error: dereferencing pointer to incomplete type
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5546: warning: implicit declaration of function `video_device_release'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:5548: warning: implicit declaration of function `video_unregister_device'
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c: At top level:
/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.c:3261: error: storage size of `spca50x_template' isn't known
make[2]: *** [/home/sean/Desktop/spca5xx-20060501/drivers/usb/spca5xx.o] 错误 1
make[1]: *** [_module_/home/sean/Desktop/spca5xx-20060501] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [default] 错误 2
sean@Sean-PC:~/Desktop/spca5xx-20060501$
mily
帖子: 107
注册时间: 2006-11-02 13:12
送出感谢: 0
接收感谢: 0

#2

帖子 mily » 2007-04-22 17:17

7.04要用gspca1.10
另外编译器似乎需要gcc-4.1
回复

回到 “常用硬件支持”