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

Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib MACOS #215

Open
varun-ll opened this issue May 26, 2022 · 4 comments
Open

Comments

@varun-ll
Copy link

varun-ll commented May 26, 2022

Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib

Reason: tried: '/usr/local/opt/openssl@3/lib/libssl.3.dylib' (no such file), '/usr/local/lib/libssl.3.dylib' (no such file), '/usr/lib/libssl.3.dylib' (no such file)

MAC ISSUE ONLY

After running the build successfully facing the above error while executing ./test/ovpncli/ovpncli and ./test/ovpncli/ovpncliagent in running different machines other than the machine in which the driver was built.

Questions

  • Is there any way to bundle openssl@3 with the driver?
@varun-ll varun-ll changed the title Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib MACOS May 26, 2022
@ramwolken9
Copy link

+1

@ramwolken9
Copy link

@schwabe Could you please help with this

@schwabe
Copy link
Contributor

schwabe commented May 27, 2022

The default instructions are for building it with homebrew and that is what I also do. For shipping a standalone app app you need to build an .app bundle. You probably need to build OpenSSL standalone. But all this is all outside the the simple instructions of the README.md. That is more usual building an app on macOS that includes OpenSSL. I know that it is possible but I personally have no experience nor interest in doing it.

@bincxz
Copy link

bincxz commented Aug 10, 2023

when compile the cli binary, set OPENSSL_USE_STATIC_LIBS to TRUE
(-DOPENSSL_USE_STATIC_LIBS=true) to force cmake look for static libraries while linking the dependencies.

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

4 participants