qt.tlsbackend.ossl: Failed to load libssl/libcrypto
-
I'm trying to deploy my Qt application on MacOS. As part of its functionality, it needs to sent REST requests over HTTPS to a specific server. It works perfectly on Linux - where I have been developing - however when I compile and run the application on MacOS, apparently openssl silently fails. The result is that the application only half-works - I see what I'm supposed to see client-side but everything is blank because the request never happened. Qt just shows the following error:
qt.tlsbackend.ossl: Failed to load libssl/libcrypto
What exactly is happening here? I was hoping that by using Qt I could sidestep all of these issues with having to find and include libraries on the user's system.
-
I'm trying to deploy my Qt application on MacOS. As part of its functionality, it needs to sent REST requests over HTTPS to a specific server. It works perfectly on Linux - where I have been developing - however when I compile and run the application on MacOS, apparently openssl silently fails. The result is that the application only half-works - I see what I'm supposed to see client-side but everything is blank because the request never happened. Qt just shows the following error:
qt.tlsbackend.ossl: Failed to load libssl/libcrypto
What exactly is happening here? I was hoping that by using Qt I could sidestep all of these issues with having to find and include libraries on the user's system.
@fherder said in qt.tlsbackend.ossl: Failed to load libssl/libcrypto:
What exactly is happening here? I was hoping that by using Qt I could sidestep all of these issues with having to find and include libraries on the user's system.
Hm, I think it should just work. But also it should not try to load OpenSSL but rather use the security libs from macOS I think. https://doc.qt.io/qt-6/ssl.html
I have an app using QtWebSockets and secure connections work out of the box on macOS. Make sure you are not using some outdated Qt version.