Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX: Makefile doesn't fetch SDL2 Framework correctly during SDL3 transition #230

Open
udance4ever opened this issue Feb 21, 2025 · 0 comments

Comments

@udance4ever
Copy link

I was able to successfully compile Supermodel in macOS Sequoia on a 2020 M1 MBP by implementing a workaround.

Bug

because the latest SDL release is now SDL3, SDL3 gets downloaded as SDL2.dmg and the compilation process fails to find SDL2.framework in the DMG

Issue

SDL2.dmg.url contains:

https://github.com/libsdl-org/SDL/releases/download/release-3.2.4/SDL3-3.2.4.dmg

Workaround

Comment out the curl command that generates SDL2.dmg.url

Frameworks/SDL2.dmg.url: | Frameworks
$(info Finding Latest Release : $@)
$(SILENT)curl --retry 5 --retry-delay 2 --fail-with-body -s https://api.github.com/repos/libsdl-org/SDL/releases/latest | awk '/"browser_download_url": "(.*\.dmg)"/{m++; if (m>1) exit; print $$2 }' | tr -d '"' > $@

and manually generate SDL2.dmg.url as:

https://github.com/libsdl-org/SDL/releases/download/release-2.32.0/SDL2-2.32.0.dmg
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

No branches or pull requests

1 participant