Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69826

WIN64: 'unresolved external symbol "struct QStaticPlugin' errors for static builds using MSVC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 Alpha
    • 5.12
    • Documentation
    • 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.
    • Windows
    • 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

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes