Is OSX 10.6.8 supported by SDL 2.0.3?

According to SDL_platform.h, the minimum requirement is 10.5.x. However,
building 2.0.3 on 10.6.8 triggers this error:

libtool: compile: gcc -arch i386 -arch x86_64 -DUSING_GENERATED_CONFIG_H
-Iinclude -I/myvolume/SDL2/SDL2-2.0.3/include -mmmx -m3dnow -msse -msse2
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -D_THREAD_SAFE -fpascal-strings -Wall -c
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m -o
build/SDL_cocoaopengl.o
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m: In function
’Cocoa_GL_GetDrawableSize’:
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning:
‘NSView’ may not respond to ‘-convertRectToBacking:’
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning:
(Messages without a matching method signature
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning:
will be assumed to return ‘id’ and accept
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning:
’…’ as arguments.)
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: error:
incompatible types in assignment

The minimum version SDL will run on once it?s built (the Deployment Target in Xcode) is Mac OS 10.5, but you still need at least the 10.7 SDK to build it.On Jun 18, 2014, at 2:16 PM, Ardillas del Monte wrote:

According to SDL_platform.h, the minimum requirement is 10.5.x. However, building 2.0.3 on 10.6.8 triggers this error:

libtool: compile: gcc -arch i386 -arch x86_64 -DUSING_GENERATED_CONFIG_H -Iinclude -I/myvolume/SDL2/SDL2-2.0.3/include -mmmx -m3dnow -msse -msse2 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -D_THREAD_SAFE -fpascal-strings -Wall -c /myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m -o build/SDL_cocoaopengl.o
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m: In function ‘Cocoa_GL_GetDrawableSize’:
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning: ‘NSView’ may not respond to ‘-convertRectToBacking:’
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning: (Messages without a matching method signature
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning: will be assumed to return ‘id’ and accept
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: warning: ‘…’ as arguments.)
/myvolume/SDL2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351: error: incompatible types in assignment


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

The minimum version SDL will run on once it?s built (the Deployment
Target in Xcode) is Mac OS 10.5, but you still need at least the 10.7
SDK to build it.

We should really put an #error in the source code that explains that.

–ryan.

The minimum version SDL will run on once it?s built (the Deployment

Target in Xcode) is Mac OS 10.5, but you still need at least the 10.7
SDK to build it.

We should really put an #error in the source code that explains that.

And on the platform requisites webpage, because it’s usual to expect that
you won’t be able to build for an old OS version using the headers from the
SDK of a newer OS version. I always thought XCode used the original headers
of the deployment target when you specified a deployment target older than
the build one. When you cross-compile, you use the deployment headers (I’m
not saying XCode does it wrong, just that the normal situation is to use
the original headers of the deployment system).

Back to the point, the situation is worse than I thought: I could easily
fix SDL_cocoaopengl.m for compiling on 10.6.8, because the error is just on
line #351. But SDL_cocoawindow.m is another story… lots of errors there.

I don’t keep any 10.7 OSX system (Lion was a low quality release IMHO, but
10.8 was good, so I upgraded the rest of my systems to 10.8 as soon as I
could, except one of them kept at 10.6.8, which is still an strategic OS
version for me).

It seems my only options are to use the precompiled libs for 10.6 (I hope
there’s an static version of the library, built for release, because I
always link SDL statically), or going back to SDL 2.0.1 which I believe
built on 10.6. But I’m really wishing to upgrade to 2.0.4 when it’s
released, because I saw it will come with must-have fixes for OSX, so going
back to 2.0.1 is hardly and option.

Well…

ardiOn Thu, Jun 19, 2014 at 5:17 AM, Ryan C. Gordon wrote:

You don?t need 10.7. You can use the 10.8 or 10.9 or 10.10 SDK to build SDL if you want (although I?m not sure whether SDL has been tested with 10.10 yet.)

I build SDL using Xcode 5.1 with the 10.9 SDK and run it on systems using older OS versions just fine.

https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.htmlOn Jun 19, 2014, at 6:00 AM, Ardillas del Monte wrote:

I don’t keep any 10.7 OSX system (Lion was a low quality release IMHO, but 10.8 was good, so I upgraded the rest of my systems to 10.8 as soon as I could, except one of them kept at 10.6.8, which is still an strategic OS version for me).

It seems my only options are to use the precompiled libs for 10.6 (I hope there’s an static version of the library, built for release, because I always link SDL statically), or going back to SDL 2.0.1 which I believe built on 10.6. But I’m really wishing to upgrade to 2.0.4 when it’s released, because I saw it will come with must-have fixes for OSX, so going back to 2.0.1 is hardly and option.

You don?t need 10.7. You can use the 10.8 or 10.9 or 10.10 SDK to build
SDL if you want (although I?m not sure whether SDL has been tested with
10.10 yet.)

I build SDL using Xcode 5.1 with the 10.9 SDK and run it on systems using
older OS versions just fine.

https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html

Starting with 10.7 or 10.8 (I don’t remember which one) only the SDK of the
immediate previous OSX release is included. So, in 10.8 you have the SDKs
of 10.8 and 10.7. I forgot on OSX you don’t need the SDK of the target OS,
and I think I forgot because when I build for older releases I always do it
specifying the native SDK path.

What you said can be an option. For the moment I took the easiest path for
me, which was to download 2.0.1 just for my 10.6.8 releases. It built fine.
I couldn’t use a precompiled version because it only has the dynamic
library, and I need the static one.

Thanks,

ardiOn Thu, Jun 19, 2014 at 11:12 AM, Alex Szpakowski wrote: