Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building pygame from source fails if no X11 installed #29

Closed
illume opened this issue Aug 22, 2011 · 0 comments
Closed

Building pygame from source fails if no X11 installed #29

illume opened this issue Aug 22, 2011 · 0 comments
Labels

Comments

@illume
Copy link
Member

illume commented Aug 22, 2011

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.

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!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant