libsdl-org / libsdl-org/setup-sdl

Fails to detect SDL2 library path when using CMake BundleUtilities in Mac builds

Open
#32 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
41
Forks
10
PR merge metrics
No merged PRs in 30d

Description

BundleUtilities is used to automatically bundle shared libraries when generating packages, however it fails when building SDL2 using this action with the error can't open file: @rpath/libSDL2-2.0.0.dylib (No such file or directory).

Example build failure: https://github.com/ccawley2011/MouseMaze/actions/runs/14865298345/job/41740485473

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the setup-sdl action's macOS build path and the linked failing GitHub Actions run, then inspect how CMake BundleUtilities resolves SDL2 libraries. Reproduce the @rpath/libSDL2-2.0.0.dylib failure and trace the missing path handling. Done means SDL2 is detected and bundled successfully in the reported Mac packaging scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, javascript
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.