0
fatal error: linux/videodev.h: No such file or directory
1
搜索问题,发现应该安装v4l(Video for Linux)的开发库。
Debian系:$ sudo apt-get install libv4l-dev
RH系:
$ sudo yum install libv4l-devel
Arch:
$ sudo pacman -S v4l-utils
2
安装后发现/usr/include/
目录下存在以下几个头文件:
libv4l1.hlibv4l1-videodev.hlibv4l2.hlibv4l2rds.hlibv4lconvert.hlibv4l-plugin.h
建立软链接
$ sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h
Edit: 我发现自己的/usr/include/linux/
目录下有videodev2.h
文件,于是先尝试给此文件建立软链接:
$ sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h
重新make,成功。