How can I build Qt 6.4.1 with openssl-1.1.1s?
-
I try to configure qt to support ssl:
C:\qt-everywhere-src-6.4.1\configure.bat -prefix C:\Qt6.4.1 -debug-and-release -platform win32-msvc -opensource -confirm-license -openssl-linked -- -DOPENSSL_ROOT_DIR=C:\openssl-1.1.1s64bitbut get the following error:
CMake Error at qtbase/cmake/QtBuildInformation.cmake:490 (message):
Feature "openssl": Forcing to "ON" breaks its condition:QT_FEATURE_openssl_runtime OR QT_FEATURE_openssl_linkedCondition values dump:
QT_FEATURE_openssl_runtime = "OFF" QT_FEATURE_openssl_linked = "OFF"Does Qt 6.4.1 support openssl-1.1.1s?
-
Look further up in your log,a slo in CMakeError.log and others to see why openssl was not found. Are you sure the root
C:\openssl-1.1.1s64bitis correct, is compiled for MSVC and contains the headers and the import libs? -
C:\openssl-1.1.1s64bit is built with Mingw. Must openssl be built with MSVC to be used in Qt6 msvc build?
-
C:\openssl-1.1.1s64bit is built with Mingw. Must openssl be built with MSVC to be used in Qt6 msvc build?
@yetanotherqtfan Yes, use same compiler. You should see a linker warning telling you that it is skipping the lib because it is not compatible.