主题 : mini2440移植gspcav1摄像头驱动问题? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 12392
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2010-01-06
最后登录: 2010-01-12
楼主  发表于: 2010-01-07 12:42

 mini2440移植gspcav1摄像头驱动问题?

是照着http://www.armchina.cn/article.asp?id=43这个帖子做的
可是我make以后
In file included from /home/QT/gspcav1-20070508/gspca_core.c:807:
/home/QT/gspcav1-20070508/utils/spcausb.h: In function 'spca5xxRegRead':
/home/QT/gspcav1-20070508/utils/spcausb.h:95: error: implicit declaration of function 'info'
/home/QT/gspcav1-20070508/utils/spcausb.h: In function 'spca_set_interface':
/home/QT/gspcav1-20070508/utils/spcausb.h:278: error: implicit declaration of function 'warn'
In file included from /home/QT/gspcav1-20070508/gspca_core.c:815:
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_init':
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h:122: error: called object 'info' is not a function
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h:136: error: called object 'info' is not a function
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h:141: error: called object 'info' is not a function
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h:148: error: called object 'info' is not a function
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h:176: error: called object 'info' is not a function
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_start':
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h:214: error: called object 'info' is not a function
/home/QT/gspcav1-20070508/Sunplus-jpeg/sp5xxfw2.h:230: error: called object 'info' is not a function
/home/QT/gspcav1-20070508/gspca_core.c: In function 'spca5xx_ioctl':
/home/QT/gspcav1-20070508/gspca_core.c:2419: error: implicit declaration of function 'video_usercopy'
/home/QT/gspcav1-20070508/gspca_core.c: At top level:
/home/QT/gspcav1-20070508/gspca_core.c:2565: error: unknown field 'owner' specified in initializer
/home/QT/gspcav1-20070508/gspca_core.c:2565: warning: initialization from incompatible pointer type
/home/QT/gspcav1-20070508/gspca_core.c:2567: error: unknown field 'type' specified in initializer
/home/QT/gspcav1-20070508/gspca_core.c:2569: warning: initialization from incompatible pointer type
/home/QT/gspcav1-20070508/gspca_core.c:2615: warning: 'struct class_device' declared inside parameter list
/home/QT/gspcav1-20070508/gspca_core.c:2615: warning: its scope is only this definition or declaration, which is probably not what you want
/home/QT/gspcav1-20070508/gspca_core.c: In function 'cd_to_spca50x':
/home/QT/gspcav1-20070508/gspca_core.c:2617: warning: initialization from incompatible pointer type
/home/QT/gspcav1-20070508/gspca_core.c: At top level:
/home/QT/gspcav1-20070508/gspca_core.c:2622: warning: 'struct class_device' declared inside parameter list
/home/QT/gspcav1-20070508/gspca_core.c: In function 'show_stream_id':
/home/QT/gspcav1-20070508/gspca_core.c:2624: warning: passing argument 1 of 'cd_to_spca50x' from incompatible pointer type
/home/QT/gspcav1-20070508/gspca_core.c: At top level:
/home/QT/gspcav1-20070508/gspca_core.c:2628: error: expected ')' before '(' token
/home/QT/gspcav1-20070508/gspca_core.c:2630: warning: 'struct class_device' declared inside parameter list
/home/QT/gspcav1-20070508/gspca_core.c: In function 'show_model':
/home/QT/gspcav1-20070508/gspca_core.c:2632: warning: passing argument 1 of 'cd_to_spca50x' from incompatible pointer type
/home/QT/gspcav1-20070508/gspca_core.c: At top level:
/home/QT/gspcav1-20070508/gspca_core.c:2637: error: expected ')' before '(' token
/home/QT/gspcav1-20070508/gspca_core.c:2639: warning: 'struct class_device' declared inside parameter list
/home/QT/gspcav1-20070508/gspca_core.c: In function 'show_pictsetting':
/home/QT/gspcav1-20070508/gspca_core.c:2641: warning: passing argument 1 of 'cd_to_spca50x' from incompatible pointer type
/home/QT/gspcav1-20070508/gspca_core.c: At top level:
/home/QT/gspcav1-20070508/gspca_core.c:2650: error: expected ')' before '(' token
/home/QT/gspcav1-20070508/gspca_core.c: In function 'spca50x_create_sysfs':
/home/QT/gspcav1-20070508/gspca_core.c:2656: error: implicit declaration of function 'video_device_create_file'
/home/QT/gspcav1-20070508/gspca_core.c:2656: error: 'class_device_attr_stream_id' undeclared (first use in this function)
/home/QT/gspcav1-20070508/gspca_core.c:2656: error: (Each undeclared identifier is reported only once
/home/QT/gspcav1-20070508/gspca_core.c:2656: error: for each function it appears in.)
/home/QT/gspcav1-20070508/gspca_core.c:2658: error: 'class_device_attr_model' undeclared (first use in this function)
/home/QT/gspcav1-20070508/gspca_core.c:2660: error: 'class_device_attr_pictsetting' undeclared (first use in this function)
/home/QT/gspcav1-20070508/gspca_core.c:2666: error: implicit declaration of function 'video_device_remove_file'
/home/QT/gspcav1-20070508/gspca_core.c: In function 'spca5xx_probe':
/home/QT/gspcav1-20070508/gspca_core.c:4125: error: incompatible types in assignment


试了好几个版本都这样,
这是为啥啊
[ 此帖被slbbls在2010-01-07 12:49重新编辑 ]
级别: 新手上路
UID: 19468
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
综合积分: 2 分
注册时间: 2010-04-20
最后登录: 2017-09-13
1楼  发表于: 2010-08-07 22:46
请问一下,你解决了没有????