SDL2 compiling error on old system

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

Just my guess, but you don’t have libxrandr-dev installed? I think that’s
where some of those symbols come from.

Jonny D

Thanks for reply.
But libxrandr-dev is installed. Do you have some other idea?------------------------
My project

Well, I decided to abandon SDL2 for Linux systems, because it’s still very bugged. Maybe in future I will reuse SDL2 for Linux.------------------------
My project

Why do you still use an almost 7 years old Linux distro anyway?

Cheers,
DanielAm 09.03.2014 20:56, schrieb samleo:

Well, I decided to abandon SDL2 for Linux systems, because it’s still
very bugged. Maybe in future I will reuse SDL2 for Linux.


My project
http://sourceforge.net/projects/dangeroustux/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

FWIW, SDL2 is used in a significant percentage of shipping Linux titles;
at this stage it’s pretty good, bug wise.On 09/03/14 19:56, samleo wrote:

Well, I decided to abandon SDL2 for Linux systems, because it’s still
very bugged. Maybe in future I will reuse SDL2 for Linux.

Why do you still use an almost 7 years old Linux distro anyway?

Cheers,
Daniel

Why do you use a new distro?

Regards,
–PhilipOn Mon, Mar 10, 2014 at 8:50 PM, Daniel Gibson wrote:

Because it has up to date software that is compatible with other up to
date software…
And it gets security updates.Am 10.03.2014 14:46, schrieb Philip Rushik:

On Mon, Mar 10, 2014 at 8:50 PM, Daniel Gibson <@Daniel_Gibson mailto:Daniel_Gibson> wrote:

Why do you still use an almost 7 years old Linux distro anyway?

Cheers,
Daniel

Why do you use a new distro?

Regards,
–Philip


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Because it has up to date software that is compatible with other up to
date software…
And it gets security updates.

Uses more memory and CPU time. Does generally the same things. Doesn’t run
well on old systems. Old distros worked fine when they were released and
computers haven’t changed that much. There are reasons to use new distros,
but I wouldn’t assume that everyone shares those reasons.

BTW, just played your dangeroustux game. Pretty nice, certainly reminded me
of dangerous dave.

Regards,
–PhilipOn Mon, Mar 10, 2014 at 10:49 PM, Daniel Gibson wrote:

The motive of I to be using a old system it’s because some friends has an old system and they want to play my game, then I’m trying to support that old systems with SDL2, but I kept the support to SDL1.2 in case of can not to use.
In the most, I suppose that SDL2 has support to Debian 4, since it is a newest system than windows XP and this is supported by SDL2, or am I wrong?
And just for information, I use a distro Linux as main system of programming, it’s Ubuntu 12.04 and SDL2 have a bug on the fullscreen mode, for this I deactivated fullscreen in Linux just when to use SDL2.------------------------
My project

I don?t think the fact that older Windows versions still see significant use really factors into whether very outdated versions of Linux distributions are supported by modern Linux programs and libraries.

The same holds true for Mac OS X, for example 99% (or more?) of OS X programs these days do not support PowerPC Macs, which were phased out of production by Apple in 2006. Most OS X programs these days require at least Mac OS 10.6 to run, which was released in mid-2009.On Mar 11, 2014, at 1:30 AM, samleo <samuel.leonardo19 at gmail.com> wrote:

I suppose that SDL2 has support to Debian 4, since it is a newest system than windows XP and this is supported by SDL2, or am I wrong?

My project
http://sourceforge.net/projects/dangeroustux/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org