./src/video/x11/SDL_x11sym.h:168:17: error: conflicting types for ‘_XData32’
SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
^
./src/video/x11/SDL_x11dyn.c:95:5: note: in definition of macro ‘SDL_X11_SYM’
rc fn params { ret p##fn args ; }
^~
In file included from ./src/video/x11/SDL_x11dyn.h:34:0,
from ./src/video/x11/SDL_x11dyn.c:26:
/usr/include/X11/Xlibint.h:673:12: note: previous declaration of ‘_XData32’ was here
extern int _XData32(
^~~~~~~~
build-deps:1154: recipe for target 'build/SDL_x11dyn.lo' failed
遇到在UBUNTU下编译SDL2的错误
进入SDL源码的目录src/video/x11
/home/u18/SDL/SDL-1.2.15/src/video/x11
gedit SDL_x11sym.h
把168行 169行的注释掉就可以执行make install了。