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

Can't build Qt Creator from sources with MinGW for Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.8.0-beta2
    • Qt Creator 4.7.1
    • Building Qt Creator
    • None
    • OS: Windows 7 Enterprise, 64-bit
    • Windows
    • b9e5dd581a06a97d45260fa9b393b135a9f1ad8f (qbs/qbs/1.12)

    Description

      Steps to reproduce:

      1. Download http://download.qt.io/official_releases/qt/5.11/5.11.2/qt-opensource-windows-x86-5.11.2.exe and http://download.qt.io/official_releases/qtcreator/4.7/4.7.1/qt-creator-opensource-src-4.7.1.zip.

      2. Install Qt 5.11.2 with checked options: MinGW 5.3.0 32 bit and Qt Script (Deprecated) in Qt 5.11.2 section.

      3. Build qtcreator.pro with default Release configuration.

      Result:

       

      ...
      
      g++ -c -fno-keep-inline-dllexport -O2 -std=gnu++1y -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQBS_LIBRARY -DQT_NO_CAST_FROM_ASCII -DQT_NO_PROCESS_COMBINED_ARGUMENT_START -DQBS_VERSION=\"1.12.1\" -DQBS_VERSION=\"1.12.1\" -DQBS_ENABLE_PROJECT_FILE_UPDATES -DQT_NO_DEBUG -DQT_CORE_LIB -ID:\Qt\Src4.7.1\qt-creator-opensource-src-4.7.1\src\shared\qbs\src\lib\qtprofilesetup -I. -ID:\Qt\Src4.7.1\qt-creator-opensource-src-4.7.1\src\shared\qbs\src -ID:\Qt\Src4.7.1\qt-creator-opensource-src-4.7.1\src\shared\qbs\src\lib\corelib -IC:\Qt_mingw\Qt5.11.2\5.11.2\mingw53_32\include -IC:\Qt_mingw\Qt5.11.2\5.11.2\mingw53_32\include\QtCore -Irelease -IC:\Qt_mingw\Qt5.11.2\5.11.2\mingw53_32\mkspecs\win32-g++  -o release\qmlcache_loader.o release\qmlcache_loader.cpp
      windres -i qbsqtprofilesetup_resource.rc -o release\qbsqtprofilesetup_resource_res.o --include-dir=. -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQBS_LIBRARY -DQT_NO_CAST_FROM_ASCII -DQT_NO_PROCESS_COMBINED_ARGUMENT_START -DQBS_VERSION=\"1.12.1\" -DQBS_VERSION=\"1.12.1\" -DQBS_ENABLE_PROJECT_FILE_UPDATES -DQT_NO_DEBUG -DQT_CORE_LIB
      g++ -Wl,-s -shared -Wl,-subsystem,windows -mthreads -Wl,--out-implib,D:\Qt\Src4.7.1\build-qtcreator-Desktop_Qt_5_11_2_MinGW_32bit-Release\lib\qtcreator\libqbsqtprofilesetup1.a -o ..\..\..\..\..\..\lib\qtcreator\qbsqtprofilesetup1.dll object_script.qbsqtprofilesetup.Release  -LD:\Qt\Src4.7.1\build-qtcreator-Desktop_Qt_5_11_2_MinGW_32bit-Release\lib\qtcreator -lqbscore1 -LC:\Qt_mingw\Qt5.11.2\5.11.2\mingw53_32\lib C:\Qt_mingw\Qt5.11.2\5.11.2\mingw53_32\lib\libQt5Core.a release\qbsqtprofilesetup_resource_res.o 
      ./release\qmlcache_loader.o:qmlcache_loader.cpp:(.text+0x490): undefined reference to `_imp___ZN11QQmlPrivate11qmlregisterENS_16RegistrationTypeEPv'
      collect2.exe: error: ld returned 1 exit status
      
      
      
      Makefile.Release:85: recipe for target '..\..\..\..\..\..\lib\qtcreator\qbsqtprofilesetup1.dll' failed
      mingw32-make[3]: Leaving directory 'D:/Qt/Src4.7.1/build-qtcreator-Desktop_Qt_5_11_2_MinGW_32bit-Release/src/shared/qbs/src/lib/qtprofilesetup'
      mingw32-make[3]: *** [..\..\..\..\..\..\lib\qtcreator\qbsqtprofilesetup1.dll] Error 1
      Makefile:36: recipe for target 'release' failed
      mingw32-make[2]: Leaving directory 'D:/Qt/Src4.7.1/build-qtcreator-Desktop_Qt_5_11_2_MinGW_32bit-Release/src/shared/qbs/src/lib/qtprofilesetup'
      mingw32-make[2]: *** [release] Error 2
      Makefile:94: recipe for target 'sub-shared-qbs-src-lib-qtprofilesetup-make_first-ordered' failed
      mingw32-make[1]: Leaving directory 'D:/Qt/Src4.7.1/build-qtcreator-Desktop_Qt_5_11_2_MinGW_32bit-Release/src'
      mingw32-make[1]: *** [sub-shared-qbs-src-lib-qtprofilesetup-make_first-ordered] Error 2
      Makefile:41: recipe for target 'sub-src-make_first-ordered' failed
      mingw32-make: *** [sub-src-make_first-ordered] Error 2
      16:51:25: The process "C:\Qt_mingw\Qt5.11.2\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project qtcreator (kit: Desktop Qt 5.11.2 MinGW 32bit)
      When executing step "Make"
      16:51:25: Elapsed time: 35:25.
      

       

      P.S. If I do the same but with Qt 5.10.1 installer http://download.qt.io/archive/qt/5.10/5.10.1/qt-opensource-windows-x86-5.10.1.exe , Qt Creator 4.7.1 is built nice.

       

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-21340
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            olya_r olya_r
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes