openvpn3
openvpn3 copied to clipboard
Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib MACOS
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?
+1
@schwabe Could you please help with this
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.
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.