In file included from include/SDL_opengles2.h:32:0, from /home/user/Package/sdl/libsdl2-2.0.3/src/video/SDL_video.c:46: /usr/include/GLES2/gl2.h:609:37: error: conflicting types for 'glTexImage2D' In file included from include/SDL_opengles.h:32:0, from /home/user/Package/sdl/libsdl2-2.0.3/src/video/SDL_video.c:41: /usr/include/GLES/gl.h:756:25: note: previous declaration of 'glTexImage2D' was here