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 3786

Summary: building against a Mac OS X SDK < 10.11 fails since the vulkan merge
Product: SDL Reporter: Ozkan Sezer <sezeroz>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Mac OS X (All)   

Description Ozkan Sezer 2017-08-29 02:15:27 UTC
Since the Vulkan merge, building against a Mac OS X SDM older than
10.11 fails in SDL_cocoametalview.m because Metal.framework is not
present. There is no conditional compiling in SDL_cocoametalview.m
either, so --disable-video-vulkan doesn't help with anything. (The
configury doesn't check darwin for x86_64 either, but it's another
story.)

I cross-build against 10.8 SDK on linux using clang-3.4.2 and this
is a problem for me.  Will this be fixed?
Comment 1 Sam Lantinga 2017-08-29 05:43:20 UTC
This is fixed so --disable-video-vulkan will do what you want:
https://hg.libsdl.org/SDL/rev/ff9e8ae4d4fb

and configure should automatically detect whether you have the Metal headers:
https://hg.libsdl.org/SDL/rev/0783887749f6

This was fixed for Xcode in this commit:
https://hg.libsdl.org/SDL/rev/d459d8934897

It's set up now so that if you add the Metal SDK to an older SDK release you'll be able to build Vulkan support.

Thanks!