macOS: add sdl3 dependency (Homebrew sdl2 is sdl2-compat)#284
Open
quarrel07 wants to merge 1 commit into
Open
Conversation
Modern Homebrew's "sdl2" formula is sdl2-compat, a shim that dlopen()s the real SDL3 at runtime, so SDL3 must be present for the built app to run on macOS. Add sdl3 to the Brewfile and the macOS dependency list in the build docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On a current Homebrew, the
sdl2formula is sdl2-compat — a compatibility shim that doesn't contain SDL itself butdlopens the real SDL3 at runtime. So a macOS build that only installssdl2links/builds fine but the resulting app needslibSDL3.dylibpresent to run.Fix
Add
sdl3to theBrewfileand to the macOS dependency list indocs/BUILDING.md, so a fresh macOS build has SDL3 available at runtime.Two-line change; no build-system changes.