Trying to build Qt 6.3.1 and dynamic linked with OpenSSL 3.0.5 on Windows
-
I am trying to build Qt
6.3.1
and dynamically linked withOpenSSL 3x
on Windows. In the past, I can build Qt6.1.3
with OpenSSL 3x and there is no problem at all. But with Qt6.3.1
I think the default option for SSL functions is built withschannel
. Please ref this link: https://bugreports.qt.io/browse/QTBUG-82876I've try to disable this option (schannel) in the file: qtbase/cmake/configure-cmake-mapping.md:
And here are my config options (add -no-schannel which I've added as above):
configure.bat -D FD_SETSIZE=4096 -release -prefix %DESTINATIONDIR% -shared -platform win32-msvc -opensource -confirm-license -openssl-linked -no-schannel -sql-psql -sql-sqlite -qt-zlib -qt-pcre --system-proxies -no-gui -no-widgets -no-gif -no-libpng -no-libjpeg -no-freetype -no-harfbuzz -no-accessibility -no-icu -no-fontconfig -no-opengl -no-egl -no-evdev -no-mtdev -no-sql-odbc -nomake tools -nomake examples -nomake tests -- -D OPENSSL_ROOT_DIR=%DEPENDENCIES_DIR%\openssl
And in the summary options, it also logs that schannel is disabled:
But when I check the module
Qt6Network.dll
it is not linked to OpenSSL libsMy expected is: the dependencies of Qt6Network.dll is linked to OpenSSL libs
So my questions are:
- How can I turn off schannel in the correct way?
- How can I make Qt6Network dynamically linked to OpenSSL libs?
Appreciate any help here, thank you!
-