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
linux/videodev.h: No such file or directory
然后将v4lgrab.c中的

"#include <linux/videodev.h>" 

#include <libv4l1-videodev.h>

代替。


GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:23 天前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐