Hi,
Compilation of trunk fails on Macs with the latest version of XCode installed. The error message is:
CC src/events/SDL_events.o
In file included from src/events/SDL_events.c:28:
In file included from src/events/SDL_sysevents.h:24:
In file included from src/events/../video/SDL_sysvideo.h:37:
include/SDL_opengl.h:3124:22: error: typedef redefinition with different types
('unsigned int' vs 'void *')
typedef unsigned int GLhandleARB; /* shader object handle */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/
System/Library/Frameworks/OpenGL.framework/Headers/gltypes.h:28:18: note:
previous definition is here
typedef void *GLhandleARB;
^
1 error generated.
make[2]: *** [src/events/SDL_events.o] Error 1
make[1]: *** [sdl] Error 2
make: *** [.contrib-libs] Error 2
Changing the type in contrib/sdl/include/SDL_opengl.h results in following errors:
CC src/video/quartz/SDL_QuartzEvents.o
In file included from src/video/quartz/SDL_QuartzEvents.m:24:
src/video/quartz/SDL_QuartzVideo.h:95:5: error: unknown type name 'CGDirectPaletteRef'
CGDirectPaletteRef palette; /* palette of an 8-bit display */
^
src/video/quartz/SDL_QuartzEvents.m:216:23: warning: 'GetScriptManagerVariable' is
deprecated: first deprecated in OS X 10.5 [-Wdeprecated-declarations]
KCHRPtr = (void *)GetScriptManagerVariable(smKCHRCache);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/
System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:98
6:1: note:
'GetScriptManagerVariable' has been explicitly marked deprecated here
GetScriptManagerVariable(short selector) __OSX_AVAILABLE_B...
^
src/video/quartz/SDL_QuartzEvents.m:226:21: warning: implicit declaration of function
'KeyTranslate' is invalid in C99 [-Wimplicit-function-declaration]
value = KeyTranslate(KCHRPtr, i, &state) & 0xff;
^
src/video/quartz/SDL_QuartzEvents.m:733:5: error: use of undeclared identifier
'CGMouseDelta'
CGMouseDelta dx, dy;
(...cut...) |