在编译ffmpeg时没有生成ffplay,需要依赖SDL,才能生成ffplay。
于是在下载SDL-1.2.15,
在 centos6.5 64bit下make 时提示
In file included from ./src/video/x11/SDL_x11dyn.c:93:
./src/video/x11/SDL_x11sym.h:168: error: conflicting types for ‘_XData32’
/usr/include/X11/Xlibint.h:708: note: previous declaration of ‘_XData32’ was here
make: *** [build/SDL_x11dyn.lo] Error 1
找了半天的问题,其实只要把./src/video/x11/SDL_x11sym.h的168行修改成下面的就可以了
SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)