You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got hit with the Image not found error for libportaudio when I packaged up my electron application and ran it on a different machine, application ran fine on the development machine though. After digging through some documents about node-gyp, I was suggested to look for the linker section of the naudiodon.node binary and found out that the LC_PATH was set to an absolute path of the build/Release path on my development machine. What I did to make it work was to change the OTHER_LDFLAGS of OS=="mac" to "-Wl,-rpath,@loader_path/" which tells the linker to look for libraries relative to the binary file location.
The text was updated successfully, but these errors were encountered:
Hi, thanks for the feedback, I'm sorry you hit a problem.
I don't have access to a Mac at the moment but if you would like to test this change and raise a PR I'm happy to update.
I got hit with the
Image not found
error for libportaudio when I packaged up my electron application and ran it on a different machine, application ran fine on the development machine though. After digging through some documents about node-gyp, I was suggested to look for the linker section of the naudiodon.node binary and found out that the LC_PATH was set to an absolute path of the build/Release path on my development machine. What I did to make it work was to change theOTHER_LDFLAGS
ofOS=="mac"
to"-Wl,-rpath,@loader_path/"
which tells the linker to look for libraries relative to the binary file location.The text was updated successfully, but these errors were encountered: