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

Linker error when building Creator on Windows 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Invalid
    • Affects Version/s: 5.14.0 Beta3
    • Fix Version/s: None
    • Component/s: QML: Compiler
    • Commits:
      0f239f6c48b59c1f0c9a9b93558be6ec2482669a (qt-creator/qt-creator/4.11)

      Description

      Reproducible with both 5.13.2 MSVC 2017 64-bit and 5.14.0 beta 3.

      	link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /OPT:REF /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:4.10 /OUT:..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll @C:\Users\Mitch\AppData\Local\Temp\qtquickplugin4.dll.4788.1797.jom
         Creating library ..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.lib and object ..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.exp
      qmlcache_loader.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl QQmlPrivate::qmlregister(enum QQmlPrivate::RegistrationType,void *)" (__imp_?qmlregister@QQmlPrivate@@YAHW4RegistrationType@1@PEAX@Z) referenced in function "public: __cdecl `anonymous namespace'::Registry::Registry(void)" (??0Registry@?A0x36767ac2@@QEAA@XZ)
      qmlcache_loader.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl QQmlPrivate::qmlunregister(enum QQmlPrivate::RegistrationType,unsigned __int64)" (__imp_?qmlunregister@QQmlPrivate@@YAXW4RegistrationType@1@_K@Z) referenced in function "void __cdecl `struct Q_QGS_unitRegistry::Registry * __cdecl Q_QGS_unitRegistry::`anonymous namespace'::Q_QGS_unitRegistry::innerFunction(void)'::`2'::`dynamic atexit destructor for 'holder''(void)" (??__Fholder@?1??innerFunction@Q_QGS_unitRegistry@?A0x36767ac2@2@YAPEAURegistry@2@XZ@YAXXZ)
      ..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll : fatal error LNK1120: 2 unresolved externals
      jom: C:\dev\qtcreator-Desktop_Qt_5_14_0_MSVC2017_64bit-Profile\src\plugins\qmldesigner\qtquickplugin\Makefile.Release [..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll] Error 1120
      jom: C:\dev\qtcreator-Desktop_Qt_5_14_0_MSVC2017_64bit-Profile\src\plugins\qmldesigner\qtquickplugin\Makefile [release] Error 2
      jom: C:\dev\qtcreator-Desktop_Qt_5_14_0_MSVC2017_64bit-Profile\src\plugins\qmldesigner\Makefile [sub-qtquickplugin-make_first-ordered] Error 2
      jom: C:\dev\qtcreator-Desktop_Qt_5_14_0_MSVC2017_64bit-Profile\src\plugins\Makefile [sub-qmldesigner-make_first] Error 2
      jom: C:\dev\qtcreator-Desktop_Qt_5_14_0_MSVC2017_64bit-Profile\src\Makefile [sub-plugins-make_first-ordered] Error 2
      jom: C:\dev\qtcreator-Desktop_Qt_5_14_0_MSVC2017_64bit-Profile\Makefile [sub-src-make_first-ordered] Error 2
      13:50:56: The process "C:\dev\qt-unified\Tools\QtCreator\bin\jom.exe" exited with code 2.
      Error while building/deploying project qtcreator (kit: Desktop Qt 5.14.0 MSVC2017 64bit)
      When executing step "Make"
      13:50:56: Elapsed time: 17:55.
      

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes