You are not logged in.

#1 2012-03-17 14:29:41

cb951303
Member
Registered: 2007-03-17
Posts: 91

SDL 2.0 does not compile

In file included from .././src/video/x11/SDL_x11dyn.c:110:0:
.././src/video/x11/SDL_x11sym.h:106:1: error: conflicting types for ‘XextAddDisplay’
/usr/include/X11/extensions/extutil.h:123:25: note: previous declaration of ‘XextAddDisplay’ was here
make: *** [build/SDL_x11dyn.lo] Error 1

I get this error. Tried couple different revisions from HG (months apart) same issue everytime. I'm beginning to think that the issue is on my side.

Any ideas?

Offline

#2 2012-03-19 15:55:58

JonnyH
Member
Registered: 2012-03-19
Posts: 1

Re: SDL 2.0 does not compile

I got this problem after updating to libXext 1.3.1 - the third argument of XextAddDisplay was changed from 'char*' to 'const char*'.

I got around this by changing SDL_x11sym.h on the line it was complaining about, replacing 'char* c' with '_Xconst char* c'

Hope that helps

Offline

#3 2012-03-19 17:50:11

cb951303
Member
Registered: 2007-03-17
Posts: 91

Re: SDL 2.0 does not compile

that was very specific and it worked. thank you

Offline

Board footer

Powered by FluxBB