1. pygame
  2. pygame
  3. pygame
  4. Issues

Issues

Issue #29 resolved

Building pygame from source fails if no X11 installed

René Dudfield
created an issue

== 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. }}}


Attachments: [[http://www.pygame.org/old_bug_attachments/20/pygame-patch| pygame-patch]]

== Thorbrian, 2009-04-26 12:28:25 -0700

{{{ Rene, you use Linux right? can you confirm the patch? }}}


== illume, 2009-07-12 23:36:47 -0700

{{{ Committed revision 2504.

cheers! }}}


Comments (0)

  1. Log in to comment