sudo apt-get install libv4l-dev*

  1. yum install libv4l-dev*
 yum install libv4l-dev*

上面错误的问题是两个2.4以上的内核里面都没有包含videodev.h这个文件了。但是有的在include/linux/下面有videodev.h文件和videodev2.h这个文件,但是在v4lgrab.c文件中只有部分包含了videodev2.h这个文件。这样导致了就算是包含了videodev2.h这个文件,但是还是会报错。解决的办法是:

  1. vi Documentation/video4linux/v4lgrab.c
vi Documentation/video4linux/v4lgrab.c
  1. linux/videodev.h: No such file or directory
linux/videodev.h: No such file or directory

然后将v4lgrab.c中的

  1. "#include <linux/videodev.h>"
"#include <linux/videodev.h>"

  1. #include <libv4l1-videodev.h>
#include <libv4l1-videodev.h>

代替。

最新文章

  1. cocos2d-x内存管理
  2. sql语句查询
  3. c++保留小数问题,如有不足或错误,欢迎指出
  4. iOS中常见的一些宏
  5. TestNG测试框架在基于Selenium进行的web自动化测试中的应用
  6. 职责链模式,chain of responsibility
  7. springmvc 入门级教程
  8. 每日一“酷”之Cookie
  9. ReportViewer动态加载数据源
  10. gridview属性
  11. vue vuex的用法
  12. 内置函数-max、min、round、sorted、ord、chr、any、all、dir、eval、exec、map、filter、reduce
  13. php laravel+nginx 除了根目录都报404 解决
  14. nginx报错:./configure: error: C compiler cc is not found, gcc 是已经安装了的
  15. python数学库math模块
  16. 爬虫2 urllib用法
  17. CENTOS7 SYSTEMD SERVICE 将自己的程序放入自动启动的系统服务
  18. SharePoint在管理中心创建Secure Store
  19. python 中面向对象的概念
  20. mysql 事件 按月分表

热门文章

  1. 子标签和后代标签: .children 和 .descendants
  2. pandas 4
  3. POJ-2065-SETI(高斯消元)
  4. MyBatis模糊查询和多条件查询
  5. SqlProfilter监控指定数据库数据表——监控linq组合查询生成的sql
  6. HTML+CSS基础学习标签代码
  7. HTML 003 元素
  8. sparkStreaming 读kafka的数据
  9. Greenplum 常用数据字典
  10. vue+大文件上传控件