openvpn3 icon indicating copy to clipboard operation
openvpn3 copied to clipboard

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

Open varun-ll opened this issue 2 years ago • 5 comments

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 avatar May 26 '22 05:05 varun-ll

+1

ramwolken9 avatar May 26 '22 14:05 ramwolken9

@schwabe Could you please help with this

ramwolken9 avatar May 26 '22 14:05 ramwolken9

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.

schwabe avatar May 27 '22 13:05 schwabe

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.

bincxz avatar Aug 10 '23 09:08 bincxz