1. Gennady Trafimenkov
  2. ja2-stracciatella
  3. Issues
Issue #54 new

SDL 1.2.15 won't compile on OS X 10.9 Mavericks

Robert McGovern
created an issue

Was just trying to compile the project for myself, unfortunately the SDL library that is required will not compile on Mavericks because CGDirectPaletteRef has been removed.

Build output:

./src/video/quartz/SDL_QuartzVideo.h:94:5: error: unknown type name 'CGDirectPaletteRef' CGDirectPaletteRef palette; / palette of an 8-bit display / ^ ./src/video/quartz/SDL_QuartzEvents.m:816:13: warning: 'UpdateSystemActivity' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] UpdateSystemActivity(UsrActivity); ^ /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h:367:1: note: 'UpdateSystemActivity' declared here UpdateSystemActivity(UInt8 activity) OSX_AVAILABLE_BUT_DEPRECATED(MAC_10_0,MAC_10_8,IPHONE_NA,__IPHONE_NA); ^ 1 warning and 1 error generated.

Comments (4)

  1. ville_halonen

    I found this page: http://www.emaculation.com/doku.php/compiling_sheepshaver_basilisk#tidbits and tried to patch SDL_QuartzVideo.h with that patch. ("patch < filename.patch" in the same directory as that file is in.) I received the error "Hunk #1 FAILED at 91. 1 out of 1 hunk FAILED -- saving rejects to file SDL_QuartzVideo.h.rej".

    EDIT: At some point, the .patch file I had, had acquired a few extra symbols. I corrected those and SDL seems to be okay!

    EDIT2: Confirmed. SDL is okay, and Gennady's pre-compiled Stracciatella works on Mavericks.

  2. Log in to comment