Skip to content

macOS: add sdl3 dependency (Homebrew sdl2 is sdl2-compat)#284

Open
quarrel07 wants to merge 1 commit into
HarbourMasters:mainfrom
quarrel07:macos-add-sdl3-dep
Open

macOS: add sdl3 dependency (Homebrew sdl2 is sdl2-compat)#284
quarrel07 wants to merge 1 commit into
HarbourMasters:mainfrom
quarrel07:macos-add-sdl3-dep

Conversation

@quarrel07

Copy link
Copy Markdown

Problem

On a current Homebrew, the sdl2 formula is sdl2-compat — a compatibility shim that doesn't contain SDL itself but dlopens the real SDL3 at runtime. So a macOS build that only installs sdl2 links/builds fine but the resulting app needs libSDL3.dylib present to run.

Fix

Add sdl3 to the Brewfile and to the macOS dependency list in docs/BUILDING.md, so a fresh macOS build has SDL3 available at runtime.

Two-line change; no build-system changes.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant