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 - building against a Mac OS X SDK < 10.11 fails since the vulkan merge
Summary: building against a Mac OS X SDK < 10.11 fails since the vulkan merge
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All Mac OS X (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-29 02:15 UTC by Ozkan Sezer
Modified: 2017-08-29 05:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!