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

SDL3.2 Release - MacOSX + CMake no LC_RPATH #12075

Open
jpacker opened this issue Jan 24, 2025 · 0 comments
Open

SDL3.2 Release - MacOSX + CMake no LC_RPATH #12075

jpacker opened this issue Jan 24, 2025 · 0 comments

Comments

@jpacker
Copy link

jpacker commented Jan 24, 2025

OS: Sequoia 15.1.1
SDL: 3.2 Release
Copied files from the dmg to: ~/Library/Frameworks/

% cmake --version 
cmake version 3.31.4

Issue -- Build and run the following. The build works, the run will throw the 'library not loaded' error.

cmake_minimum_required(VERSION 3.31)

project(sdl_test)
find_package(SDL3 REQUIRED COMPONENTS SDL3)


add_executable(sdl_test main.cpp)
target_link_libraries(sdl_test PRIVATE SDL3::SDL3)

Any main.cpp that includes SDL.h and uses some SDL function will do.

dyld[32596]: Library not loaded: @rpath/SDL3.framework/Versions/A/SDL3
  Referenced from: <9A40D4C9-F910-3720-A145-565515BF0083> /Users/xxx/coding/cpp/sdl_test/build/sdl_test
  Reason: no LC_RPATH's found

I found the old discussion (#9479) regarding this but it was marked as closed and working. In fact, this was working at one point for me, but I don't recall the version. The last pre-release didn't work, either, but I got frustrated and distracted so I didn't get a chance to report it.

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