I’m trying to compile SDL2.0.1 on my old linux system (Debian 4 Etch). The compiling shows some errors, below:
Code:
libtool: compile: gcc -g -O3 -DUSING_GENERATED_CONFIG_H -Iinclude -I/SDL2.0_linux/SDL2-2.0.1/include -mmmx -m3dnow -msse -fvisibility=hidden -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL_x11clipboard.lo -c /SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11clipboard.c -fPIC -DPIC -o build/.libs/SDL_x11clipboard.o
In file included from /SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11dyn.h:90,
from /SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11video.h:61,
from /SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11clipboard.c:28:
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘X11_XRRGetScreenResources’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:266: error: expected ‘)’ before '’ token
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:266: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘X11_XRRFreeScreenResources’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:267: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:267: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘X11_XRRGetOutputInfo’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:268: error: expected ‘)’ before '’ token
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:268: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘X11_XRRFreeOutputInfo’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:269: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:269: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘X11_XRRGetCrtcInfo’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:270: error: expected ‘)’ before '’ token
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘X11_XRRFreeCrtcInfo’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:271: error: expected declaration specifiers or ‘…’ before ‘XRRScreenResources’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:271: error: expected declaration specifiers or ‘…’ before ‘RRCrtc’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:271: error: expected declaration specifiers or ‘…’ before ‘RRMode’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:271: error: expected declaration specifiers or ‘…’ before ‘RROutput’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:272: error: expected declaration specifiers or ‘…’ before ‘RROutput’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:273: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:273: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘X11_XRRQueryOutputProperty’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11sym.h:274: error: expected declaration specifiers or ‘…’ before ‘RROutput’
In file included from /SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11video.h:66,
from /SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11clipboard.c:28:
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11modes.h:45: error: expected specifier-qualifier-list before ‘RROutput’
/SDL2.0_linux/SDL2-2.0.1/src/video/x11/SDL_x11modes.h:57: error: expected specifier-qualifier-list before ‘RRMode’
make: ** [build/SDL_x11clipboard.lo] Erro 1
Well then, what do I do?------------------------
My project