Skip to content

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

Open
@udance4ever

Description

@udance4ever

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions