Error compiling SDL CVS

Hello !

I just updated to the latest SDL CVS version
and tried to compile it using CYGWIN ( MinGW Mode ) :

Creating library file: .libs/libSDL.dll.a
video/.libs/libvideo.a(SDL_dibvideo.o): In function DIB_VideoQuit': /home/wizard/code/SDL/SDL12/src/video/windib/SDL_dibvideo.c:974: undefined refer ence to_SDL_UnregisterApp’
video/.libs/libvideo.a(SDL_dx5video.o): In function DX5_VideoQuit': /home/wizard/code/SDL/SDL12/src/video/windx5/SDL_dx5video.c:2390: undefined refe rence to_SDL_UnregisterApp’
collect2: ld returned 1 exit status

CU

video/.libs/libvideo.a(SDL_dibvideo.o): In function DIB_VideoQuit': /home/wizard/code/SDL/SDL12/src/video/windib/SDL_dibvideo.c:974: undefined reference to_SDL_UnregisterApp’

Whoops, my typo; fixed in CVS.

–ryan.

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

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

What version of OS X and Developer Tools is this, and are you building
with XCode or the command line Unix tools?

Thanks,
–ryan.

Hello !

What version of OS X and Developer Tools is this, and are you building
with XCode or the command line Unix tools?

iBook G4 1GHz, Mac OSX 10.4.3, XCode 2.1, Building from the Command Line
I installed every package from the XCode Package.

CU

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

gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""

[…snip…]

SDL_x11gl_c.h:29:20: error: GL/glx.h: No such file or directory

[…snip…]

This should be fixed in CVS now…it’ll have glX support if the
configure script sees it, otherwise, it SHOULD disable it (and not X11
as a whole) on the Mac…plus some other fixes. Let me know if this
still gives you grief.

–ryan.

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

Also, fwiw, with the latest SDL cvs, I was able to play
icculus.org/quake3 in an X11 window on the Mac at about the same
framerate as the SDL Quartz driver gets, which isn’t actually terribly
important, but pleases me for some reason.

(Game patches for Quake3 SDL support on Mac OS X are going to the i.o
subversion repository soon.)

–ryan.

Hello !

wizard at wizardspc ~/code/SDL/SDL12
$ ./autogen.sh
Generating build information using aclocal, automake and autoconf
This may take a while …
configure.in:3201: required file src/video/XFree86/Makefile.in' not found configure.in:3201: required filesrc/video/XFree86/extensions/Makefile.in’ not
found
configure.in:3201: required file src/video/XFree86/Xinerama/Makefile.in' not fo und configure.in:3201: required filesrc/video/XFree86/Xv/Makefile.in’ not found
configure.in:3201: required file src/video/XFree86/Xxf86dga/Makefile.in' not fo und configure.in:3201: required filesrc/video/XFree86/Xxf86vm/Makefile.in’
not fou
nd
configure.in:3201: required file `src/video/XFree86/XME/Makefile.in’ not
found

wizard at wizardspc ~/code/SDL/SDL12
$

CU

wizard at wizardspc ~/code/SDL/SDL12
$ ./autogen.sh
Generating build information using aclocal, automake and autoconf
This may take a while …
configure.in:3201: required file `src/video/XFree86/Makefile.in’ not found
[…]

Fixed.

–ryan.

wizard at wizardspc ~/code/SDL/SDL12
$ ./autogen.sh
Generating build information using aclocal, automake and autoconf
This may take a while …
configure.in:3201: required file `src/video/XFree86/Makefile.in’ not found
[…]

Fixed.

I’m working on it (and revamping the configure support)

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

wizard at wizardspc ~/code/SDL/SDL12
$ ./autogen.sh
Generating build information using aclocal, automake and autoconf
This may take a while …
configure.in:3201: required file `src/video/XFree86/Makefile.in’ not found
[…]

Fixed.

I’m working on it (and revamping the configure support)

Ryan beat me to it, but it should be fixed in CVS now.j

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment