[Interest] Enabling OpenSSL on a shared build of Qt

Robert Iakobashvili coroberti at gmail.com
Wed Mar 2 17:07:23 CET 2016


On Wed, Mar 2, 2016 at 5:37 PM, Nuno Santos <nunosantos at imaginando.pt> wrote:
> I’m using Qt 5.5.1 clang_64 prebuilt package and it doesn’t seem to have
> OpenSSL support built in as I’m receiving this output.
>
> From documentation I see that OpenSSL is enabled by default however it
> doesn’t seem to able to find it.
>
> I’m even trying to additionally link ssl libraries to the app but it doesn’t
> seem to work either.
>
> qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_client_callback
> qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method
> qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method

Nuno,

1. LIBS += -L"/path-to-lib-files" -llibeay32 -lssleay32

Sometimes, it may need crypt32.lib

2. You need to provide these openssl dlls either in one of the
directories mentioned in
    PATH or add their location to PATH.

Moreover, it seems to be that OpenSSL 1.1.x version that is required
by your Qt-version
since 1.0.x series required also SSL2 functions..

3. You can find several places with instructions on how to build
OpenSSL on Windows;
as a tip,  build without NASM - no need in NASM.

Take care.

Kind regards,
Robert



More information about the Interest mailing list