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

@rpath on mac OS #85

Open
yangpenglove opened this issue Jul 24, 2022 · 2 comments
Open

@rpath on mac OS #85

yangpenglove opened this issue Jul 24, 2022 · 2 comments

Comments

@yangpenglove
Copy link

Hi,
Thanks for your effort.

I have tried it and it works fine, but I found there is no @rpath in built lippdfuim.dylib. That means I have to put it into myapp.app/Contents/MacOS when I tried to release my app, but it disallowed by Apple, could you please add @rpath for convenience, such as "@rpath/lippdfuim.dylib" ?

BTW, I tried install name tool but I got below error:

changing install names or rpaths can't be redone for: ~/Downloads/pdfium-mac-arm64/lib/libpdfium.dylib (for architecture arm64) because larger updated load commands do not fit.

Thanks

@bblanchon
Copy link
Owner

Hi @yangpenglove,

I'm sorry, I'm unfamiliar with this problem; I thought @rpath was set on the executable, not on the library.
@TcT2k, do you think you can shed some light?

Best regards,
Benoit

@zxystd
Copy link

zxystd commented Jan 2, 2025

mostly, the dylib id would be @rpath/libpdfium.dylib so it can be search from Frameworks directory but here it is ./libpdfium.dylib which means it should be same directly to the runtime path.

we can rename the id by this command:
install_name_tool -id @rpath/libpdfium.dylib /path/from/libpdfium.dylib

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

3 participants