[SDL] Error compiling SDL CVS

Torsten Giebl wizard at syntheticsw.com
Fri Nov 18 14:21:40 PST 2005


Hello !


I got this error when
compiling SDL CVS on
Mac OSX :


 gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\"
-DVERSION=\"1.2.9\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I.
-I. -g -O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT
-I/System/Library/Frameworks/Carbon.framework/Headers
-I/System/Library/Frameworks/Cocoa.framework/Headers -fpascal-strings
-DENABLE_QUARTZ -DMACOSX -DTARGET_API_MAC_CARBON=1
-I../../../src/video/quartz -DENABLE_X11 -DXTHREADS
-DX11_DYNAMIC=\"/usr/X11R6/lib/libX11.6.dylib\"
-DX11EXT_DYNAMIC=\"/usr/X11R6/lib/libXext.6.dylib\" -I./include
-I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -DHAVE_OPENGL
-D_THREAD_SAFE -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX
-DHAVE_SEMUN -DHAVE_SIGACTION -DGCC_ALTIVEC -DUSE_ALTIVEC_BLITTERS
-faltivec -I../../../include -I../../../include/SDL -I../../../src
-I../../../src/main/macosx -I../../../src/audio -I../../../src/video
-I../../../src/video/XFree86/extensions -I../../../src/events
-I../../../src/joystick -I../../../src/cdrom -I../../../src/thread
-I../../../src/timer -I../../../src/endian -I../../../src/file
-I../../../src/thread -c SDL_x11gl.c -MT SDL_x11gl.lo -MD -MP -MF
.deps/SDL_x11gl.TPlo  -fno-common -DPIC -o .libs/SDL_x11gl.o
In file included from SDL_x11gl.c:35:
SDL_x11gl_c.h:29:20: error: GL/glx.h: No such file or directory
In file included from SDL_x11gl.c:35:
SDL_x11gl_c.h:41: error: parse error before 'GLXContext'
SDL_x11gl_c.h:41: warning: no semicolon at end of struct or union
SDL_x11gl_c.h:51: error: parse error before '*' token
SDL_x11gl_c.h:54: error: parse error before 'GLXContext'
SDL_x11gl_c.h:55: warning: type defaults to 'int' in declaration of
'GLXContext'
SDL_x11gl_c.h:55: error: 'GLXContext' declared as function returning a
function
SDL_x11gl_c.h:55: warning: data definition has no type or storage class
SDL_x11gl_c.h:59: error: parse error before 'GLXContext'
SDL_x11gl_c.h:63: error: parse error before 'GLXDrawable'
SDL_x11gl_c.h:68: error: parse error before 'GLXDrawable'
SDL_x11gl_c.h:78: error: parse error before 'GLXDrawable'
SDL_x11gl_c.h:86: error: parse error before '}' token
SDL_x11gl.c: In function 'X11_GL_GetVisual':
SDL_x11gl.c:75: error: dereferencing pointer to incomplete type
SDL_x11gl.c:77: error: dereferencing pointer to incomplete type
SDL_x11gl.c:82: error: 'GLX_RGBA' undeclared (first use in this function)
SDL_x11gl.c:82: error: (Each undeclared identifier is reported only once
SDL_x11gl.c:82: error: for each function it appears in.)
SDL_x11gl.c:83: error: 'GLX_RED_SIZE' undeclared (first use in this function)
SDL_x11gl.c:85: error: 'GLX_GREEN_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:87: error: 'GLX_BLUE_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:91: error: 'GLX_ALPHA_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:96: error: 'GLX_BUFFER_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:101: error: 'GLX_DOUBLEBUFFER' undeclared (first use in this
function)
SDL_x11gl.c:104: error: 'GLX_DEPTH_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:108: error: 'GLX_STENCIL_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:113: error: 'GLX_ACCUM_RED_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:118: error: 'GLX_ACCUM_GREEN_SIZE' undeclared (first use in
this function)
SDL_x11gl.c:123: error: 'GLX_ACCUM_BLUE_SIZE' undeclared (first use in
this function)
SDL_x11gl.c:128: error: 'GLX_ACCUM_ALPHA_SIZE' undeclared (first use in
this function)
SDL_x11gl.c:133: error: 'GLX_STEREO' undeclared (first use in this function)
SDL_x11gl.c:155: error: dereferencing pointer to incomplete type
SDL_x11gl.c:155: error: dereferencing pointer to incomplete type
SDL_x11gl.c:164: error: dereferencing pointer to incomplete type
SDL_x11gl.c:168: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_CreateWindow':
SDL_x11gl.c:183: error: dereferencing pointer to incomplete type
SDL_x11gl.c:192: error: dereferencing pointer to incomplete type
SDL_x11gl.c:193: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_CreateContext':
SDL_x11gl.c:213: error: dereferencing pointer to incomplete type
SDL_x11gl.c:213: error: dereferencing pointer to incomplete type
SDL_x11gl.c:214: error: dereferencing pointer to incomplete type
SDL_x11gl.c:217: error: dereferencing pointer to incomplete type
SDL_x11gl.c:222: error: dereferencing pointer to incomplete type
SDL_x11gl.c:226: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_Shutdown':
SDL_x11gl.c:238: error: dereferencing pointer to incomplete type
SDL_x11gl.c:239: error: dereferencing pointer to incomplete type
SDL_x11gl.c:241: error: dereferencing pointer to incomplete type
SDL_x11gl.c:242: error: dereferencing pointer to incomplete type
SDL_x11gl.c:242: error: dereferencing pointer to incomplete type
SDL_x11gl.c:244: error: dereferencing pointer to incomplete type
SDL_x11gl.c:245: error: dereferencing pointer to incomplete type
SDL_x11gl.c:247: error: dereferencing pointer to incomplete type
SDL_x11gl.c:249: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_MakeCurrent':
SDL_x11gl.c:294: error: dereferencing pointer to incomplete type
SDL_x11gl.c:295: error: dereferencing pointer to incomplete type
SDL_x11gl.c:321: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_GetAttribute':
SDL_x11gl.c:340: error: 'GLX_RED_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:343: error: 'GLX_GREEN_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:346: error: 'GLX_BLUE_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:349: error: 'GLX_ALPHA_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:352: error: 'GLX_DOUBLEBUFFER' undeclared (first use in this
function)
SDL_x11gl.c:355: error: 'GLX_BUFFER_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:358: error: 'GLX_DEPTH_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:361: error: 'GLX_STENCIL_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:364: error: 'GLX_ACCUM_RED_SIZE' undeclared (first use in this
function)
SDL_x11gl.c:367: error: 'GLX_ACCUM_GREEN_SIZE' undeclared (first use in
this function)
SDL_x11gl.c:370: error: 'GLX_ACCUM_BLUE_SIZE' undeclared (first use in
this function)
SDL_x11gl.c:373: error: 'GLX_ACCUM_ALPHA_SIZE' undeclared (first use in
this function)
SDL_x11gl.c:376: error: 'GLX_STEREO' undeclared (first use in this function)
SDL_x11gl.c:388: error: dereferencing pointer to incomplete type
SDL_x11gl.c:388: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_SwapBuffers':
SDL_x11gl.c:395: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_UnloadLibrary':
SDL_x11gl.c:406: error: dereferencing pointer to incomplete type
SDL_x11gl.c:407: error: dereferencing pointer to incomplete type
SDL_x11gl.c:408: error: dereferencing pointer to incomplete type
SDL_x11gl.c:409: error: dereferencing pointer to incomplete type
SDL_x11gl.c:410: error: dereferencing pointer to incomplete type
SDL_x11gl.c:411: error: dereferencing pointer to incomplete type
SDL_x11gl.c: In function 'X11_GL_LoadLibrary':
SDL_x11gl.c:427: error: dereferencing pointer to incomplete type
SDL_x11gl.c:456: error: dereferencing pointer to incomplete type
SDL_x11gl.c:458: error: dereferencing pointer to incomplete type
SDL_x11gl.c:460: error: dereferencing pointer to incomplete type
SDL_x11gl.c:461: error: parse error before ')' token
SDL_x11gl.c:462: error: dereferencing pointer to incomplete type
SDL_x11gl.c:463: error: parse error before 'GLXContext'
SDL_x11gl.c:464: error: dereferencing pointer to incomplete type
SDL_x11gl.c:465: error: parse error before 'GLXDrawable'



CU






More information about the SDL mailing list