Linking Openssl isssue in Qt mac OSx
-
BN_bin2bn, referenced from:
cryptolens_io::v20190401::SignatureVerifier_OpenSSL::set_modulus_base64(cryptolens_io::v20190401::basic_Error&, std::__1::basic_string<char, std::__1::char_traits<char>, std::_1::allocator<char>> const&) in SignatureVerifier_OpenSSL.o
cryptolens_io::v20190401::SignatureVerifier_OpenSSL::set_exponent_base64(cryptolens_io::v20190401::basic_Error&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in SignatureVerifier_OpenSSL.o
_BN_free, referenced from:Checking Installation on macOS
To locate OpenSSL on macOS, you can use the following methods:
Using Homebrew:
brew --prefix opensslThis command will show the installation prefix for OpenSSL if it was installed via Homebrew.
Locate OpenSSL:
which opensslThis command will show the path to the OpenSSL binary that is currently in your PATH.
Check Version:
openssl version -aThis will display detailed information about the OpenSSL version and its configuration.
Manual Search:
find /usr/local -name 'openssl*'This command searches for directories and files related to OpenSSL within the /usr/local path.
Example Homebrew Setup
If you installed OpenSSL via Homebrew, you should see it in a directory like /usr/local/opt/openssl@1.1. Ensure your shell profile includes the correct environment variables:
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"After updating your shell profile, reload it with:
source ~/.zshrc # or source ~/.bash_profile
By ensuring these steps, you should be able to locate and use your OpenSSL directories on macOS, similar to your experience on Windows.
followed above steps to install openssl from homebrew
I am getting this issues and throwing linking error while i am doing the make -j in mac OSx platform
-
Hi,
Which version of Qt are you trying to build ?
On which version of macOS ?
With which version of Xcode ?
Why do you need OpenSSL on macOS ? -
@SGaist said in Linking Openssl isssue in Qt mac OSx:
Why do you need OpenSSL on macOS ?
Perhaps not OP's reason, but Apple stopped updating Secure Transport quite a while back. AFAIK, OpenSSL is the only option for TLS 1.3 via QSslSocket and friends on a mac.
-
Hi @SGaist
QT Version - 6.5.3
MacOS - 14.4.1 (23E224)Sonoma
XCode Version - Version 15.2 (15C500b)
We need openssl for cryptolens authentication login -
Any Suggestions or Solution related to openssl in macos
-
Hi guys still we are facing this issue any useful solutions?
-
Just tested:
OPENSSL_ROOT_DIR=/opt/homebrew/Cellar/openssl@3/3.3.2 /path_to_src/qt/qtbase/configure --openssl
and it worked.
Note that this is with a recent checkout of qtbase.