Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

build qtcreator 4.4.1 from souce code failed



  • hi, everybody,

    i build qtcreator 4.4.1 from souce code, the debug version is ok, but the release version building complain as below:

    mingw32-make[1]: Leaving directory 'F:/build-qtcreator-Desktop_Qt_5_14_2_MinGW_64_bit-Release/src'
    release/qmlcache_loader.o:qmlcache_loader.cpp:(.text+0x32): undefined reference to __imp__ZN11QQmlPrivate13qmlunregisterENS_16RegistrationTypeEy' release/qmlcache_loader.o:qmlcache_loader.cpp:(.text+0x473): undefined reference to__imp__ZN11QQmlPrivate11qmlregisterENS_16RegistrationTypeEPv'
    release/qmlcache_loader.o:qmlcache_loader.cpp:(.text+0xdcf): undefined reference to __imp__ZN11QQmlPrivate11qmlregisterENS_16RegistrationTypeEPv' release/qmlcache_loader.o:qmlcache_loader.cpp:(.text.startup+0x15b): undefined reference to__imp__ZN11QQmlPrivate11qmlregisterENS_16RegistrationTypeEPv'
    collect2.exe: error: ld returned 1 exit status
    mingw32-make[3]: *** [Makefile.Release:84: ../../../../../../lib/qtcreator/qbsqtprofilesetup1.dll] Error 1
    mingw32-make[2]: *** [Makefile:45: release] Error 2
    mingw32-make[1]: *** [Makefile:104: sub-shared-qbs-src-lib-qtprofilesetup-make_first-ordered] Error 2
    mingw32-make: *** [Makefile:51: sub-src-make_first-ordered] Error 2
    14:28:56: 进程"E:\Qt\Qt5.14.2\Tools\mingw730_64\bin\mingw32-make.exe"退出,退出代码 2 。
    Error while building/deploying project qtcreator (kit: Desktop Qt 5.14.2 MinGW 64-bit)
    When executing step "Make"
    14:28:56: Elapsed time: 00:24

    i am not a qt expert, who can tell me what i should do?


Log in to reply