Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting "unresolved externals" error while building QtCreator
QtWS25 Last Chance

Getting "unresolved externals" error while building QtCreator

Scheduled Pinned Locked Moved Solved General and Desktop
qtcreatorqt5qmldesignerbuildcompilation
5 Posts 4 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eager
    wrote on 11 Mar 2019, 09:35 last edited by
    #1

    I am building the latest QtCreator source downloaded from git, while building I get this error:

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

    I see that many many plugins get compiled but when it reaches qmldesigner plugin the compilation stops with the above error. I also notice that the qtquickplugin4.lib get created but qtquickplugin4.dll do not!
    Some compile Output log:

    qmlcache_loader.cpp
    moc_qtquickplugin.cpp
    	link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:4.9 /OUT:..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll @C:\Users\Shujaat\AppData\Local\Temp\qtquickplugin4.dll.6604.5188.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@?A0xeb5bf69e@@QEAA@XZ)
    ..\..\..\..\lib\qtcreator\plugins\qmldesigner\qtquickplugin4.dll : fatal error LNK1120: 1 unresolved externals
    jom: F:\qtcreator\1\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\1\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\src\plugins\qmldesigner\qtquickplugin\Makefile [release] Error 2
    jom: F:\qtcreator\1\build-qtcreator-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\src\plugins\qmldesigner\Makefile [sub-qtquickplugin-make_first-ordered] Error 2
    14:24:54: 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"
    14:24:54: Elapsed time: 04:43.
    
    1 Reply Last reply
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 11 Mar 2019, 20:47 last edited by
      #2

      Hi, this error has been around for some time :-(
      There might be a solution here

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Eager
        wrote on 19 Mar 2019, 19:07 last edited by
        #3

        When building with Qt Creator, you have to disable the QtQuick compiler in the qmake build step. Simply unchecking the checkbox and rebuilding solved the problem.

        S B 2 Replies Last reply 31 May 2019, 20:23
        1
        • E Eager
          19 Mar 2019, 19:07

          When building with Qt Creator, you have to disable the QtQuick compiler in the qmake build step. Simply unchecking the checkbox and rebuilding solved the problem.

          S Offline
          S Offline
          steva44
          wrote on 31 May 2019, 20:23 last edited by
          #4

          @Eager This solution worked for me thanks!

          1 Reply Last reply
          0
          • E Eager
            19 Mar 2019, 19:07

            When building with Qt Creator, you have to disable the QtQuick compiler in the qmake build step. Simply unchecking the checkbox and rebuilding solved the problem.

            B Offline
            B Offline
            BrunoMenezes
            wrote on 19 May 2021, 19:22 last edited by
            #5

            @Eager, it worked for me. Thanks!

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved