Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10
-
None
-
- Windows 10 x64,
- mingw-w64 x86_64 7.2.0,
- ICC 2017 Update 1,
- MSVC 2017 15.5.0,
- Windows SDK 10.0.16299.15,
- OpenSSL-1.1.0g,
- Qt5-dev ([a7ebfbda729691c250a8d335156bb7124473b7d8|http://code.qt.io/cgit/qt/qt5.git/commit/?h=dev&id=a7ebfbda729691c250a8d335156bb7124473b7d8]) with Changes [#204473|https://codereview.qt-project.org/#/c/204473/], [#212546|https://codereview.qt-project.org/#/c/212546/], [#212547|https://codereview.qt-project.org/#/c/212547/], [#212548|https://codereview.qt-project.org/#/c/212548/] applied.- Windows 10 x64, - mingw-w64 x86_64 7.2.0, - ICC 2017 Update 1, - MSVC 2017 15.5.0, - Windows SDK 10.0.16299.15, - OpenSSL-1.1.0g, - Qt5-dev ([a7ebfbda729691c250a8d335156bb7124473b7d8| http://code.qt.io/cgit/qt/qt5.git/commit/?h=dev&id=a7ebfbda729691c250a8d335156bb7124473b7d8 ]) with Changes [#204473| https://codereview.qt-project.org/#/c/204473/ ], [#212546| https://codereview.qt-project.org/#/c/212546/ ], [#212547| https://codereview.qt-project.org/#/c/212547/ ], [#212548| https://codereview.qt-project.org/#/c/212548/ ] applied.
-
e365993b72d64db441f3940d6c255e3dbb2ad76a
Description
Hello, everyone,
For Qt builds using MSVC got errors:
configure -v -opensource -confirm-license -release -shared -platform win32-msvc -openssl-linked OPENSSL_PREFIX="%CD%\..\..\libOPENSSL-1.1.0g\MSVC64RH" OPENSSL_LIBS="-llibssl -llibcrypto" -opengl dynamic >_configure.log 2>&1 <snip> Checking for OpenSSL... Trying source 0 (type openssl) of library openssl ... $OPENSSL_LIBS is not set. => source produced no result. Trying source 1 (type inline) of library openssl ... => source failed condition 'config.win32 && !features.shared'. Trying source 2 (type inline) of library openssl ... + cd /d C:\libQT-5.11-dev\build\config.tests\openssl && c:\libQT-5.11-dev\build\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "LIBS += -Lc:\\libQT-5.11-dev\\build\\..\\..\\libOPENSSL-1.1.0g\\MSVC64RH/lib -llibssl -llibcrypto" "INCLUDEPATH *= c:\\libQT-5.11-dev\\build\\..\\..\\libOPENSSL-1.1.0g\\MSVC64RH/include" C:/libQT-5.11-dev/build/qtbase/config.tests/openssl + cd /d C:\libQT-5.11-dev\build\config.tests\openssl && set MAKEFLAGS=& jom > jom 1.1.2 - empower your cores > cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -O2 -MD -W0 -EHsc -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DNDEBUG -IC:\libQT-5.11-dev\build\qtbase\config.tests\openssl -I. -Ic:\libOPENSSL-1.1.0g\MSVC64RH\include -IC:\libQT-5.11-dev\build\qtbase\mkspecs\win32-msvc -Fo @C:\Users\test\AppData\Local\Temp\openssl.obj.9828.0.jom > openssl.cpp > link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:openssl.exe @C:\Users\test\AppData\Local\Temp\openssl.exe.9828.141.jom => source accepted. test config.network.libraries.openssl succeeded Checking for OpenSSL v. 1.1 support... + cd /d C:\libQT-5.11-dev\build\config.tests\unix\openssl11 && c:\libQT-5.11-dev\build\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "LIBS += ws2_32.lib" C:/libQT-5.11-dev/build/qtbase/config.tests/unix/openssl11 + cd /d C:\libQT-5.11-dev\build\config.tests\unix\openssl11 && set MAKEFLAGS=& jom > jom 1.1.2 - empower your cores > cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -O2 -MD -W0 -EHsc -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DNDEBUG -IC:\libQT-5.11-dev\build\qtbase\config.tests\unix\openssl11 -I. -IC:\libQT-5.11-dev\build\qtbase\mkspecs\win32-msvc -Fo @C:\Users\test\AppData\Local\Temp\openssl.obj.3028.16.jom > openssl.cpp > C:\libQT-5.11-dev\build\qtbase\config.tests\unix\openssl11\openssl.cpp(40): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory > jom: C:\libQT-5.11-dev\build\config.tests\unix\openssl11\Makefile [openssl.obj] Error 2 test config.network.tests.openssl11 FAILED
The same for builds using ICC on Windows and mingw-w64.
Reproduced for:
- builds with OpenSSL-1.1.0x and OPENSSL_INCDIR, OPENSSL_LIBDIR, OPENSSL_PREFIX configuration keys (e.g. '-openssl-linked OPENSSL_PREFIX="%CD%\..\..\libOPENSSL-1.1.0g\MSVC64RH" OPENSSL_LIBS="-llibssl -llibcrypto"'),
not reproduced for:
- builds with OpenSSL-1.1.0x and -I"<path to OPENSSL-1.1.0x>\include" -L"<path to OPENSSL-1.1.0x>\lib" configuration keys (e.g. '-openssl-linked -I"%CD%\..\..\libOPENSSL-1.1.0g\MSVC64RH\include" -L"%CD%\..\..\libOPENSSL-1.1.0g\MSVC64RH\lib" OPENSSL_LIBS="-llibssl -llibcrypto"'),
- builds with OpenSSL-1.0.2x.
The comparison of successful and failed 'openssl11' configuration test, depending of used configuration commands:
According to the Qt Documentation, "Each uppercased library name (obtainable with -list-libraries)" supports this suffixes. Since configure -list-libraries command print openssl for Qt Network module, it's expected, that _INCDIR, _LIBDIR, _PREFIX suffixes would be supported for OpenSSL too.
Best,
Alexander
Attachments
Issue Links
- duplicates
-
QTBUG-61431 processing of configure *_LIBS_[DEBUG|RELEASE] arguments is botched
- Closed