make zImage出错

编译内核的时候出错:

Documentation/video4linux/v4lgrab.c:34:28: fatal error: linux/videodev.h: No such file or directory #include

^ compilation terminated. make[2]: *** [Documentation/video4linux/v4lgrab] Error 1 make[1]: *** [Documentation/video4linux] Error 2 make: *** [vmlinux] Error 2

提示没有找到头文件(linux/videodev.h: No such file or directory #include),于是修改包含的头文件名

vi Documentation/video4linux/v4lgrab.c

找到#include

将其修改为:

#include

结果编译还是出错,提示没有找到libv4l1-videodev.h,原来是没有安装库文件,所以再次安装库文件:

yum install libv4l-dev*

再次编译,成功!

你可能感兴趣的:(make zImage出错)