You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported by: René Dudfield (Bitbucket: illume, GitHub: illume)
== Robert A. Lerche, 2009-03-29 13:20:17 -0700
Created attachment 20
patch to fix compilation errors when X11 not installed
Environment: Linux from Scratch 6.4, SDL 1.2.13, pygame-1.8.1release, *NO* X11.
Symptom: compilation errors in display.c and event.c, for example
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_REENTRANT -I/usr/X11R6/include -I/usr/include/SDL -I/usr/include/python2.6 -c src/display.c -o build/temp.linux-i686-2.6/src/display.o
src/display.c: In function 'get_wm_info':
src/display.c:325: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:329: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:333: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:337: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:341: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:345: error: 'SDL_SysWMinfo' has no member named 'info'
Solution: use SDL's SDL_VIDEO_DRIVER_X11 symbol instead of !DISABLE_X11 (patch attached).
There are 3 references to DISABLE_X11: display.c, event.c, and scrap.c. The patch fixes all 3 but I haven't tested scrap.c because I haven't included scrap.
Originally reported by: René Dudfield (Bitbucket: illume, GitHub: illume)
== Robert A. Lerche, 2009-03-29 13:20:17 -0700
Attachments:
[[http://www.pygame.org/old_bug_attachments/20/pygame-patch| pygame-patch]]
== Thorbrian, 2009-04-26 12:28:25 -0700
== illume, 2009-07-12 23:36:47 -0700
The text was updated successfully, but these errors were encountered: