Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12
-
None
-
* Windows 10 x64,
* mingw-w64 x86_64 posix seh 8.1.0,
* ICC 2018 Update 3,
* MSVC 2017 15.7.3,
* Windows SDK 10.0.17134.12,
* Qt5-dev-d16c0d26752968c4621778be62cd91489c9065bc.
-
-
76d922b211b1dce50fabbaeb46457fe9b375af8c
Description
Hello, everyone,
For builds using MSVC got errors:
cd photoviewer\ && ( if not exist Makefile C:\libQT-5.12-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.12-dev\build\qtdoc\examples\demos\photoviewer\photoviewer.pro ) && C:\Windows\jom.exe -f Makefile C:\Windows\jom.exe -f Makefile.Release link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:release\photoviewer.exe @C:\Users\test\AppData\Local\Temp\photoviewer.exe.9428.0.jom Creating library release\photoviewer.lib and object release\photoviewer.exp photoviewer_qml_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QtQuickControls1Plugin(void)" (?qt_static_plugin_QtQuickControls1Plugin@@YA?BUQStaticPlugin@@XZ) referenced in function "void __cdecl `dynamic initializer for 'staticQtQuickControls1PluginInstance''(void)" (??__EstaticQtQuickControls1PluginInstance@@YAXXZ) photoviewer_qml_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QtQuick2WindowPlugin(void)" (?qt_static_plugin_QtQuick2WindowPlugin@@YA?BUQStaticPlugin@@XZ) referenced in function "void __cdecl `dynamic initializer for 'staticQtQuick2WindowPluginInstance''(void)" (??__EstaticQtQuick2WindowPluginInstance@@YAXXZ) photoviewer_qml_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QtQuickLayoutsPlugin(void)" (?qt_static_plugin_QtQuickLayoutsPlugin@@YA?BUQStaticPlugin@@XZ) referenced in function "void __cdecl `dynamic initializer for 'staticQtQuickLayoutsPluginInstance''(void)" (??__EstaticQtQuickLayoutsPluginInstance@@YAXXZ) release\photoviewer.exe : fatal error LNK1120: 3 unresolved externals jom: C:\libQT-5.12-dev\build\qtdoc\examples\demos\photoviewer\Makefile.Release [release\photoviewer.exe] Error 1120 jom: C:\libQT-5.12-dev\build\qtdoc\examples\demos\photoviewer\Makefile [release] Error 2 jom: C:\libQT-5.12-dev\build\qtdoc\examples\demos\Makefile [sub-photoviewer-make_first] Error 2 jom: C:\libQT-5.12-dev\build\qtdoc\examples\Makefile [sub-demos-make_first] Error 2 jom: C:\libQT-5.12-dev\build\qtdoc\Makefile [sub-examples-make_first] Error 2
which can relate to recently merged Change #232532.
Reproduced for:
- Qt5-dev-d16c0d267529 builds using MSVC with static layout,
not reproduced for:
- Qt5-dev-c145e9c2178 builds using MSVC with static layout,
- Qt5-dev-d16c0d267529 builds using MSVC with shared layout,
- builds using mingw-w64.
Can be a duplicate of QTBUG-66481.
Best,
Alexander