uvc_v4l2_ioctl.h 提示出错 too few arguments to function ‘v4l_printk_ioctl’
来源:互联网 发布:库里赛季数据 编辑:程序博客网 时间:2024/06/05 15:30
今天编译了UVC的摄像头的驱动,突然不给力了老是提示以下错误:
/home/king/work/Maxim/64380-3.2.4/host/Linux/uvcdriver/src/uvcvideo-next/uvc_v4l2.c: In function ‘uvc_v4l2_ioctl’:
/home/king/work/Maxim/64380-3.2.4/host/Linux/uvcdriver/src/uvcvideo-next/uvc_v4l2.c:1092:3: warning: passing argument 1 of ‘v4l_printk_ioctl’ makes pointer from integer without a cast [enabled by default]include/media/v4l2-ioctl.h:301:13: note: expected ‘const char *’ but argument is of type ‘unsigned int’
/home/king/work/Maxim/64380-3.2.4/host/Linux/uvcdriver/src/uvcvideo-next/uvc_v4l2.c:1092:3: error: too few arguments to function ‘v4l_printk_ioctl’
include/media/v4l2-ioctl.h:301:13: note: declared here
make[2]: *** [/home/king/work/Maxim/64380-3.2.4/host/Linux/uvcdriver/src/uvcvideo-next/uvc_v4l2.o] Error 1
make[1]: *** [_module_/home/king/work/Maxim/64380-3.2.4/host/Linux/uvcdriver/src/uvcvideo-next] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-29-generic'
make: *** [all] Error 2
以前编译都正常,今天就是换了个系统,3.8.0-30-generic不应该呀,于是找了以前版本的 uvc_v4l2_ioctl.h
和系统中的uvc_v4l2_ioctl.h 对比果然改了好多东东,这也需就是为什么我编译过去的原因。于是乎直接:
将 /lib/modules/(uname -a)/build/include/media/v4l2-ioctl.h的给做了个备份
#mv ./v4l2-ioctl.h ./v4l2-ioctl.h_bak
将能够用的(老的)v4l2-ioctl.h拷贝到该文件夹下
#mv ~/v4l2-ioctl.h ./
OK,编译通过。
退出来进入到uvcideo里面编译驱动,顺利通过,而后对比了两个文件发现不宜样的地方有十几处,晕死了,那个家伙修改了文件也不在系统里面提示一下。
对比了两个头文件:
新的:void v4l_printk_ioctl(const char *prefix, unsigned int cmd)
原来的:void v4l_printk_ioctl(unsigned int cmd)
因此如果不更改原头文件可以将调用函数写成 v4l_printk_ioctl(“A”,cmd); 也可以实现编译通过。
- uvc_v4l2_ioctl.h 提示出错 too few arguments to function ‘v4l_printk_ioctl’
- fuse_trash.c:119: error: too few arguments to function 'hdfsDelete'
- bug:error:too few arguments to function ‘fopen’
- error : too few arguments in function call
- IAR编译出错:Error[Pe165]: too few arguments in function call
- caffe 安装时提示cudnn.hpp(114): too few arguments in function call
- nginx-sticky-module-1.1//ngx_http_sticky_misc.c:281:2: error: too few arguments to function
- yaffs2 源码错误 too few arguments to function 'yaffs_flush_file' 2014.08.22
- 手动编译memcached时遇到memcache.c error: too few arguments to function ‘zend_list_insert’的解决方法
- cudnn.hpp:127:41: error: too few arguments to function ‘cudnnStatus_t cudnnSetPooling2dDescriptor
- caffe cudnnSetConvolution2dDescriptor error: too few arguments in function call
- caffe 与cudnn版本不匹配 ./include/caffe/util/cudnn.hpp:127:41: error: too few arguments to function
- too few arguments to block call expected 3 have 1
- too many arguments to function call
- Too many arguments to function call
- Too many arguments to function call...
- c++引用标准c库close出错 error: too many arguments to function call, expected 0, have 1
- Xcode导入runtime框架函数参数没有提示或Too many arguments to function call, expected 0, have 2错误
- 指针容器的应用 --- boost::ptr_container介绍
- C语言中float,double等类型,在内存中的结构
- 使用Eclipse构建Maven的SpringMVC项目
- Oracle常用数据字典
- UITableView多行处理
- uvc_v4l2_ioctl.h 提示出错 too few arguments to function ‘v4l_printk_ioctl’
- iOS7中Objective-C和Foundation的新特性(What’s New in Objective-C and Foundation in iOS 7)
- open-drain, push-pull,MOSFET, MOS管,三极管等基础知识
- protel 在PCB文件中查找元件
- Solr4.4.0部署到tomcat上
- linux内存管理--伙伴系统和内存分配器
- 什么是ValueStack
- Python 列表(list)操作
- oracle 之Extract 函数