linux/videodev.h: No such file or directory错误解决方法
2024-09-01 09:58:10
sudo apt-get install libv4l-dev*
- yum install libv4l-dev*
yum install libv4l-dev*
上面错误的问题是两个2.4以上的内核里面都没有包含videodev.h这个文件了。但是有的在include/linux/下面有videodev.h文件和videodev2.h这个文件,但是在v4lgrab.c文件中只有部分包含了videodev2.h这个文件。这样导致了就算是包含了videodev2.h这个文件,但是还是会报错。解决的办法是:
- vi Documentation/video4linux/v4lgrab.c
vi Documentation/video4linux/v4lgrab.c
- linux/videodev.h: No such file or directory
linux/videodev.h: No such file or directory
然后将v4lgrab.c中的
- "#include <linux/videodev.h>"
"#include <linux/videodev.h>"
用
- #include <libv4l1-videodev.h>
#include <libv4l1-videodev.h>
代替。
最新文章
- cocos2d-x内存管理
- sql语句查询
- c++保留小数问题,如有不足或错误,欢迎指出
- iOS中常见的一些宏
- TestNG测试框架在基于Selenium进行的web自动化测试中的应用
- 职责链模式,chain of responsibility
- springmvc 入门级教程
- 每日一“酷”之Cookie
- ReportViewer动态加载数据源
- gridview属性
- vue vuex的用法
- 内置函数-max、min、round、sorted、ord、chr、any、all、dir、eval、exec、map、filter、reduce
- php laravel+nginx 除了根目录都报404 解决
- nginx报错:./configure: error: C compiler cc is not found, gcc 是已经安装了的
- python数学库math模块
- 爬虫2 urllib用法
- CENTOS7 SYSTEMD SERVICE 将自己的程序放入自动启动的系统服务
- SharePoint在管理中心创建Secure Store
- python 中面向对象的概念
- mysql 事件 按月分表