Does Qt 5.15 support OpenSSL 3.x?
-
wrote on 29 Jul 2023, 23:59 last edited by
I used OpenSSL 3 to build Qt 5.15.10 successfully, but at runtime, I faced problems:
qt.network.ssl: QSslSocket: cannot resolve EVP_PKEY_base_id qt.network.ssl: QSslSocket: cannot resolve SSL_get_peer_certificate Build version: "OpenSSL 3.1.1 30 May 2023" Run version: "OpenSSL 3.1.1 30 May 2023" Supports SSL: true
Finally, porting changes from Qt 6 to 5 results in a successful build and run. 🎉
Read my gist for steps -
wrote on 7 Aug 2023, 13:32 last edited by QuantumTransistor 8 Jul 2023, 13:34
@seyed - I used the patch from your gist and was able to successfully build and use Qt 5.15.10 with OpenSSL 3.1.2 using
-openssl-runtime
. Thanks!! 🎉 -
@seyed - I used the patch from your gist and was able to successfully build and use Qt 5.15.10 with OpenSSL 3.1.2 using
-openssl-runtime
. Thanks!! 🎉wrote on 30 Sept 2023, 14:47 last edited by ocgltdI hope to avoid rebuilding Qt + patches. Will Qt release a 5.15.x update that will allow compilation against openssl 3 ?
-
I hope to avoid rebuilding Qt + patches. Will Qt release a 5.15.x update that will allow compilation against openssl 3 ?
@ocgltd if memory serves well, the 5.15 LTS has support for OpenSSL 3 so it should eventually come to be.
You might want to check the KDE patch set for Qt.
-
I hope to avoid rebuilding Qt + patches. Will Qt release a 5.15.x update that will allow compilation against openssl 3 ?
wrote on 3 Oct 2023, 07:56 last edited by@ocgltd according to a comment on this bug report, OpenSSL 3 is supported with Qt 5.15.13 onwards. If you are using the open-source version, this should be available 9 March 2024 (one year after the commercial release date).
-
@ocgltd according to a comment on this bug report, OpenSSL 3 is supported with Qt 5.15.13 onwards. If you are using the open-source version, this should be available 9 March 2024 (one year after the commercial release date).
wrote on 28 Mar 2024, 12:34 last edited by piervalli@QuantumTransistor
Openssl works with 5.15.13 (open source) but we need to compiare with c++17 -
@QuantumTransistor
Openssl works with 5.15.13 (open source) but we need to compiare with c++17@piervalli what issue do you have with C++17 ?
Qt 5 requires C++11 and OpenSSL is C. -
@piervalli what issue do you have with C++17 ?
Qt 5 requires C++11 and OpenSSL is C. -
@SGaist
The issue is with Qt 5.15.13 and build by source I haved setted c++17 for that error.
text\qlocale_win.cpp:498:60: error: 'size' is not a member of 'std'I used Mingw 8.1
wrote on 29 Mar 2024, 09:26 last edited by@piervalli
Since https://en.cppreference.com/w/cpp/iterator/size states that C++17 onward is required forstd::size()
it ought be present. (You might show line #498 oftext\qlocale_win.cpp
so we know what the call looks like.) That implies either you are not setting for C++17 correctly or the MinGW does not have correct support for it. You might look in the appropriatestd::...
header file to see what is/is not there for this. -
@piervalli
Since https://en.cppreference.com/w/cpp/iterator/size states that C++17 onward is required forstd::size()
it ought be present. (You might show line #498 oftext\qlocale_win.cpp
so we know what the call looks like.) That implies either you are not setting for C++17 correctly or the MinGW does not have correct support for it. You might look in the appropriatestd::...
header file to see what is/is not there for this. -
wrote on 29 Mar 2024, 09:36 last edited by JonB
@piervalli
Hang on, I see a problem!Go to that cppreference page. Look at the sample code. Go pick the various
c++17
compilers it offers. WithGCC 13.1 (C++17)
it compiles fine. But withGCC 5.2 (C++17)
I get the same error as you show.So which gcc is the MinGW supposed to emulate? You can go to https://godbolt.org/ and play with selecting different compilers, they include MinGW choices. The oldest they have is MinGW gcc 11.3.0, that seems to work (only errors on
std::ssize()
in that code, which requires C++20, fair enough). -