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

MacOS @rpath linking #3

Open
Edmisten-Sound opened this issue Apr 12, 2019 · 1 comment
Open

MacOS @rpath linking #3

Edmisten-Sound opened this issue Apr 12, 2019 · 1 comment

Comments

@Edmisten-Sound
Copy link

There is an issue on OSX where FMOD does not properly path to required dynamic libraries. I have a workaround that does work, for sure. I'll include it in this issue. Do you think we could automate this process during the build?

install_name_tool -change @rpath/libfmod.dylib (path to libfmod.dylib) (path to Godot build)
install_name_tool -change @rpath/libfmodstudio.dylib (path to libfmodstudio.dylib) (path to Godot build)

@piiertho
Copy link
Contributor

piiertho commented Apr 13, 2019

Hi @SGtheoneandonly , with scons you can automate it using sys_exec command. We had the same issue with fmod gdnative, here is a piece of script :

sys_exec(["install_name_tool", "-change", "@rpath/libfmodstudio.dylib", "@loader_path/%s/libfmodstudio.dylib" % fmodLibInstallPath, "bin/libGodotFmod.%s.dylib" % platform])

EDIT : I forgot sys_exec was a method I added in my scons. PR #6 include it in module, I don't know how we can use module scons to make post build operation. If this is possible, we can call install_name_tool using sys_exec.

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

2 participants