You are not logged in.
/usr/include/SDL2/SDL_image.h is in package libsdl2-image-dev
Offline
OK I installed libsdl2-image-dev, cloned the source and ran sudo make.
The error this time is:
cc -O2 -g `sdl2-config --cflags` -DX11 -c m_misc.c -o m_misc.o
m_misc.c: In function ‘M_FileExists’:
m_misc.c:95:17: error: ‘errno’ undeclared (first use in this function)
return (errno == EISDIR);
^
m_misc.c:95:17: note: each undeclared identifier is reported only once for each function it appears in
m_misc.c:95:26: error: ‘EISDIR’ undeclared (first use in this function)
return (errno == EISDIR);
^
m_misc.c: In function ‘M_GetAppDataFolder’:
m_misc.c:177:25: warning: passing argument 1 of ‘M_StringJoin’ discards ‘const’ qualifier from pointer target type
return M_StringJoin(buffer, DIR_SEPARATOR_S".config"DIR_SEPARATOR_S, PACKAGE, NULL);
^
In file included from m_misc.c:54:0:
m_misc.h:74:7: note: expected ‘char *’ but argument is of type ‘const char *’
char *M_StringJoin(char *s, ...);
^
Makefile:58: recipe for target 'm_misc.o' failed
make: *** [m_misc.o] Error 1
Offline