| Summary: | SDL_x11gl.c fails to build on some OS X systems, patch attached | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Max Horn <max> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.14 | ||
| Hardware: | PowerPC | ||
| OS: | Mac OS X (All) | ||
| Attachments: | Patch adding #include <GL/glxtokens.h> | ||
|
Description
Max Horn
2009-09-21 12:34:37 UTC
Created attachment 369 [details]
Patch adding #include <GL/glxtokens.h>
I think I already fixed this. Is the build issue present with the current SDL 1.2 snapshot? Hard to tell for me, as I never could reproduce the issue, but some users could. All of them had XQuartz installed, which updates the X11 installation. The error used to be: gcc -g -O2 -I/sw/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/x11/SDL_x11gamma.c -o build/SDL_x11gamma.o >/dev/null 2>&1 /bin/sh ./libtool --mode=compile gcc -g -O2 -I/sw/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/x11/SDL_x11gl.c -o build/SDL_x11gl.lo gcc -g -O2 -I/sw/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/x11/SDL_x11gl.c -fno-common -DPIC -o build/.libs/SDL_x11gl.o ./src/video/x11/SDL_x11gl.c: In function 'X11_GL_GetVisual': ./src/video/x11/SDL_x11gl.c:188: error: 'GLX_NONE_EXT' undeclared (first use in this function) ./src/video/x11/SDL_x11gl.c:188: error: (Each undeclared identifier is reported only once ./src/video/x11/SDL_x11gl.c:188: error: for each function it appears in.) make: *** [build/SDL_x11gl.lo] Error 1 Oh yeah, this is fixed in subversion. Thanks! |