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

[Godot4] fix macOS CI #358

Open
touilleMan opened this issue Jul 26, 2022 · 0 comments
Open

[Godot4] fix macOS CI #358

touilleMan opened this issue Jul 26, 2022 · 0 comments

Comments

@touilleMan
Copy link
Owner

https://github.com/touilleMan/godot-python/runs/7530366434?check_suite_focus=true#step:7:808

ERROR: Can't open dynamic library: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/godot-python-test-i93xfgzx/addons/pythonscript/macos-x86_64/libpythonscript.dylib, error: dlopen(/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/godot-python-test-i93xfgzx/addons/pythonscript/macos-x86_64/libpythonscript.dylib, 2): Library not loaded: /install/lib/libpython3.9.dylib

This is most likely due to the rpath configuration

if host_platform.startswith('linux')
lib_pythonscript_rpath = '$ORIGIN/lib'
elif host_platform.startswith('macos')
lib_pythonscript_rpath = '@loader_path/lib'
endif
lib_pythonscript = shared_library(
'pythonscript',
['pythonscript.c'],
dependencies: [dep_godot, dep_python, dep__pythonscript],
install_rpath: lib_pythonscript_rpath, # To find libpython

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant