| Summary: | X11 build failure on MacOS X | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sam Lantinga <slouken> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 1.2 | ||
| Hardware: | PowerPC | ||
| OS: | Mac OS X (All) | ||
We can't really default on anything in SDL_syswm.h that may not exist on a platform. This header is included by the application code and needs to work wherever the library is installed. Huh, I get this: checking for Cocoa framework... yes checking for X... libraries /usr/X11R6/lib, headers I always assumed this was just part of the Mac OS SDK, but it probably relies on installing the X11 package, which is unchecked by default in the OS (not developer tools!) install. Hmm. --ryan. SDL_config.h takes care of this now. :) |
configure reports: checking for Cocoa framework... yes checking for X... no checking for OpenGL (GLX) support... no checking for pthreads... yes checking for recursive mutexes... no checking for pthread semaphores... yes ... Then building the library fails: In file included from SDL_QuartzVideo.h:63, from SDL_QuartzEvents.m:23: ../../../include/SDL_syswm.h:58:22: X11/Xlib.h: No such file or directory ../../../include/SDL_syswm.h:59:23: X11/Xatom.h: No such file or directory In file included from SDL_QuartzVideo.h:63, from SDL_QuartzEvents.m:23: ../../../include/SDL_syswm.h:76: error: parse error before "XEvent" ../../../include/SDL_syswm.h:76: warning: no semicolon at end of struct or union ../../../include/SDL_syswm.h:76: warning: no semicolon at end of struct or union ../../../include/SDL_syswm.h:77: warning: type defaults to `int' in declaration of `event' etc.