title: Qt cannot find libssl even though it is installed
body: <p>trying to solve this for hours. My Qt program depends on https connection but in cannot launch it on Arch (works fine on Debian and Ubuntu).</p>
  
  <p><strong>I added /usr/lib to LD_LIBRARY_PATH</strong> <code>LD_LIBRARY_PATH=home/michal/Qt/5.10.0/gcc_64/lib:/home/michal/Qt/5.10.0/gcc_64/lib:/usr/lib</code></p>
  
  <p><strong>program output</strong></p>
  
  <pre><code>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
  </code></pre>
  
  <p><strong>ls /usr/lib/libssl*</strong></p>
  
  <pre><code>lrwxrwxrwx 1 root root     13  2. lis 17.20 /usr/lib/libssl.so -&gt; libssl.so.1.1
  -r-xr-xr-x 1 root root 502024 25. kvě 18.54 /usr/lib/libssl.so.1.0.0
  -rwxr-xr-x 1 root root 434176  2. lis 17.21 /usr/lib/libssl.so.1.1
  -rwxr-xr-x 1 root root 359736  5. říj 22.49 /usr/lib/libssl3.so
  </code></pre>
  
  <p><strong>ls -l /usr/lib/libcrypto*</strong></p>
  
  <pre><code>lrwxrwxrwx 1 root root      16  2. lis 17.20 /usr/lib/libcrypto.so -&gt; libcrypto.so.1.1
  -r-xr-xr-x 1 root root 2842880 25. kvě 18.54 /usr/lib/libcrypto.so.1.0.0
  -rwxr-xr-x 1 root root 2594952  2. lis 17.21 /usr/lib/libcrypto.so.1.1
  </code></pre>
  
  <p><strong>with test code</strong></p>
  
  <pre><code>int main(int argc, char *argv[]) {
      QApplication a(argc, argv);
      qDebug()&lt;&lt;"SSL version use for build: "&lt;&lt;QSslSocket::sslLibraryBuildVersionString();
      qDebug()&lt;&lt;"SSL version use for run-time: "&lt;&lt;QSslSocket::sslLibraryVersionNumber();
      qDebug()&lt;&lt;QCoreApplication::libraryPaths();
  
      return 0;
  }
  </code></pre>
  
  <p><strong>the output is</strong></p>
  
  <pre><code>SSL version use for build:  "OpenSSL 1.0.1e-fips 11 Feb 2013"
  qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks
  qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback
  qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback
  qt.network.ssl: QSslSocket: cannot resolve ERR_free_strings
  qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_cleanup
  qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_init
  qt.network.ssl: QSslSocket: cannot resolve sk_new_null
  qt.network.ssl: QSslSocket: cannot resolve sk_push
  qt.network.ssl: QSslSocket: cannot resolve sk_free
  qt.network.ssl: QSslSocket: cannot resolve sk_num
  qt.network.ssl: QSslSocket: cannot resolve sk_pop_free
  qt.network.ssl: QSslSocket: cannot resolve sk_value
  qt.network.ssl: QSslSocket: cannot resolve SSL_library_init
  qt.network.ssl: QSslSocket: cannot resolve SSL_load_error_strings
  qt.network.ssl: QSslSocket: cannot resolve SSL_get_ex_new_index
  qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
  qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
  qt.network.ssl: QSslSocket: cannot resolve SSLv23_client_method
  qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
  qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method
  qt.network.ssl: QSslSocket: cannot resolve SSLv23_server_method
  qt.network.ssl: QSslSocket: cannot resolve X509_STORE_CTX_get_chain
  qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
  qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
  qt.network.ssl: QSslSocket: cannot resolve SSLeay
  qt.network.ssl: Incompatible version of OpenSSL
  SSL version use for run-time:  0
  ("/home/michal/Qt/5.10.0/gcc_64/plugins", "/home/michal/Programming/build-Test-Desktop_Qt_5_10_0_GCC_64bit4-Vydu00e1nu00ed")
  </code></pre>