We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2695 - build fail OSX 10.6.8
Summary: build fail OSX 10.6.8
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: x86 Mac OS X 10.6
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 07:05 UTC by skaller
Modified: 2015-02-19 02:57 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skaller 2014-08-20 07:05:55 UTC
OSX 10.6.8 clang 3.3svn

~/SDL>make
/bin/sh build-scripts/updaterev.sh
  CC     build/SDL_cocoaopengl.lo
/Users/johnskaller/SDL/src/video/cocoa/SDL_cocoaopengl.m:157:61: error: use of undeclared identifier
      'NSAppKitVersionNumber10_6'; did you mean 'NSAppKitVersionNumber'?
    SDL_bool lion_or_later = floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6;
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
                                                            NSAppKitVersionNumber
/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:21:28: note: 'NSAppKitVersionNumber' declared
      here
APPKIT_EXTERN const double NSAppKitVersionNumber;
                           ^
/Users/johnskaller/SDL/src/video/cocoa/SDL_cocoaopengl.m:180:48: error: use of undeclared identifier
      'NSOpenGLProfileVersionLegacy'
        NSOpenGLPixelFormatAttribute profile = NSOpenGLProfileVersionLegacy;
                                               ^
/Users/johnskaller/SDL/src/video/cocoa/SDL_cocoaopengl.m:182:23: error: use of undeclared identifier
      'NSOpenGLProfileVersion3_2Core'
            profile = NSOpenGLProfileVersion3_2Core;
                      ^
/Users/johnskaller/SDL/src/video/cocoa/SDL_cocoaopengl.m:184:21: error: use of undeclared identifier
      'NSOpenGLPFAOpenGLProfile'
        attr[i++] = NSOpenGLPFAOpenGLProfile;
                    ^
/Users/johnskaller/SDL/src/video/cocoa/SDL_cocoaopengl.m:341:20: warning: instance method '-convertRectToBacking:'
      not found (return type defaults to 'id') [-Wobjc-method-access]
        viewport = [contentView convertRectToBacking:viewport];
                   ^            ~~~~~~~~~~~~~~~~~~~~
/Users/johnskaller/SDL/src/video/cocoa/SDL_cocoaopengl.m:341:18: error: assigning to 'NSRect' (aka 'struct CGRect')
      from incompatible type 'id'
        viewport = [contentView convertRectToBacking:viewport];
                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 5 errors generated.
make: *** [build/SDL_cocoaopengl.lo] Error 1
Comment 1 Alex Szpakowski 2014-10-09 00:12:28 UTC
SDL requires the Mac OS X 10.7 SDK (or newer) when compiling - although it supports down to OS 10.5 at runtime after it's compiled.

https://hg.libsdl.org/SDL/file/3331d2f57704/src/video/cocoa/SDL_cocoawindow.m#l25
Comment 2 Alex Szpakowski 2014-10-09 00:17:29 UTC
It's also mentioned in the OS X readme: https://hg.libsdl.org/SDL/file/3331d2f57704/docs/README-macosx.md
Comment 3 Ryan C. Gordon 2015-02-19 02:57:25 UTC
Yeah, Apple makes it really hard to keep old build environments working (although we strive to make older OS X releases work, even if you must build on a newer Xcode or OS X SDK).

--ryan.