ffmpeg安装出现的问题解决

其他支持比较简单,不容易出错,这样ffmpeg的一切准备就绪,./configure 正常 # make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/home/yujingtao/soft/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavdevice/v4l.o libavdevice/v4l.c In file included from libavdevice/v4l.c:32: /usr/include/linux/videodev.h:55: error: syntax error before "ulong" /usr/include/linux/videodev.h:71: error: syntax error before '}' token libavdevice/v4l.c: In function `grab_read_header': libavdevice/v4l.c:77: error: storage size of 'tuner' isn't known libavdevice/v4l.c:141: error: invalid application of `sizeof' to incomplete type `video_tuner' libavdevice/v4l.c:148: error: invalid application of `sizeof' to incomplete type `video_tuner' libavdevice/v4l.c:77: warning: unused variable `tuner' make: *** [libavdevice/v4l.o] 错误 1 试过了多种解决方法,比如添加 #include 但是还是有问题,经过不懈的努力终于找到问题所在: vi /usr/include/linux/videodev.h rangelow, rangehigh; /* Tuner range */ 把 ulong rangelow, rangehigh; /* Tuner range */ 改为: unsigned long rangelow, rangehigh; /* Tuner range */

相关推荐