Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22115

Building Qt Creator 4.8.2 with MSVC 2017 64bit throws error: ..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll:-1: error: LNK1120: 1 unresolved externals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.8.2
    • Building Qt Creator
    • None
    • Windows

    Description

      While building Qt Creator 4.8.2, source taken from the official release page https://download.qt.io/official_releases/qtcreator/4.8/4.8.2/qt-creator-opensource-src-4.8.2.zip, the following error is thrown:

      qmlcache_loader.obj:-1: 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@?A0x40aefe12@@QEAA@XZ)
      File not found: qmlcache_loader.obj

       

       ..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll:-1: error: LNK1120: 1 unresolved externals
      

      Compile Output:

      moc_qtquickplugin.cpp
      	link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:4.8 /OUT:..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll @C:\Users\Shujaat\AppData\Local\Temp\qtquickplugin4.dll.19828.5187.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@?A0x40aefe12@@QEAA@XZ)
      ..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll : fatal error LNK1120: 1 unresolved externals
      jom: F:\qtcreator\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\src\plugins\qmldesigner\qtquickplugin\Makefile.Release [..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll] Error 1120
      jom: F:\qtcreator\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\src\plugins\qmldesigner\qtquickplugin\Makefile [release] Error 2
      jom: F:\qtcreator\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\src\plugins\qmldesigner\Makefile [sub-qtquickplugin-make_first-ordered] Error 2
      jom: F:\qtcreator\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\src\plugins\Makefile [sub-qmldesigner-make_first] Error 2
      jom: F:\qtcreator\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\src\Makefile [sub-plugins-make_first-ordered] Error 2
      jom: F:\qtcreator\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\Makefile [sub-src-make_first-ordered] Error 2
      21:17:24: The process "F:\Qt\Qt5.12.1\Tools\QtCreator\bin\jom.exe" exited with code 2.
      Error while building/deploying project qtcreator (kit: Desktop Qt 5.12.1 MSVC2017 64bit)
      The kit Desktop Qt 5.12.1 MSVC2017 64bit has configuration issues which might be the root cause for this problem.
      When executing step "Make"
      21:17:24: Elapsed time: 04:41.
      

      For building I am using Qt5.12.1 MSVC2017-64bit. Building Qt Creator with Qt Creator 4.8.1 MSVC2015 32bit in release mode.

       

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            eager1 Shujaat Khan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes