I want to send an application I wrote to some colleagues. So far, I simply copied the binaries together with all libraries in a .zip file and sent it to them. This worked fine.
My latest changes involve that I'm using the Qt Network library. Therefore, I have included three new library files in my .zip file:
libQt5Network.so.5
libQt5Network.so.5.11
libQt5Network.so.5.11.1
The application starts and runs but at some point, it is expected to download multiple files from the web.
Unfortunately, some of the downloads fail. It is possible to download files from FTP
servers but not from https
.
I'm assuming that it could have to do with OpenSSL
is missing but I'm not sure.
When I started using the Qt Network library, I remember that I had problems getting it to download from https
and the problems were related to OpenSSL
.
Instead of downloading the files, I get the following error message:
qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
We got a connection error when networkLayerState is Unknown
qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
...
The error message clearly refers to the SSL
library.
Mind that I do not believe that my code has some problem since it is working on my computer. Therefore, I'm not posting code here. I think it has to do with the way I deploy the code and that some libraries are missing? What can I do?
I tried to run ldd
on the executable and on libQt5Network.so.5
but it does not list anything related to OpenSSL
.
Please mind that I'm not a computer expert, I'm just a scientist who wants to distribute his software as easy as possible to some colleagues.