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

WIN64: 'cannot find -lCore4' and 'cannot open input file 'Core4.lib'' errors for static builds on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • Qt Creator 4.8.0-beta1
    • Building Qt Creator
    • None
    • Windows

    Description

      Hello, everyone,

      Got errors for builds using mingw-w64:

      mingw32-make[4]: Entering directory 'c:/QTCREATOR-4.8.0-dev/build/src/plugins/cpaster/frontend'
      g++ -Wl,-s -Wl,-subsystem,console -static -Wl,--gc-sections -mthreads -o ..\..\..\..\bin\cpaster.exe object_script.cpaster.Release  -Lc:\QTCREATOR-4.8.0-dev\build\lib\qtcreator -Lc:\QTCREATOR-4.8.0-dev\build\lib\qtcreator\plugins -lCore4 -lAggregation4 -lExtensionSystem4 -lUtils4 -Lc:\libQT-5.12-dev\GCC64RT\plugins\styles c:\libQT-5.12-dev\GCC64RT\plugins\styles\libqwindowsvistastyle.a -Lc:\libQT-5.12-dev\GCC64RT\lib -Lc:\libICU-63.1-dev\GCC64RT\lib -Lc:\libQT-5.12-dev\GCC64RT\plugins\platforms c:\libQT-5.12-dev\GCC64RT\plugins\platforms\libqwindows.a -lwinspool -lshlwapi c:\libQT-5.12-dev\GCC64RT\lib\libQt5EventDispatcherSupport.a c:\libQT-5.12-dev\GCC64RT\lib\libQt5FontDatabaseSupport.a c:\libQT-5.12-dev\GCC64RT\lib\libqtfreetype.a c:\libQT-5.12-dev\GCC64RT\lib\libQt5ThemeSupport.a c:\libQT-5.12-dev\GCC64RT\lib\libQt5AccessibilitySupport.a c:\libQT-5.12-dev\GCC64RT\lib\libQt5VulkanSupport.a c:\libQT-5.12-dev\GCC64RT\lib\libQt5WindowsUIAutomationSupport.a -Lc:\libQT-5.12-dev\GCC64RT\plugins\imageformats c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqgif.a c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqicns.a c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqico.a c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqjpeg.a c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqtga.a c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqtiff.a c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqwbmp.a c:\libQT-5.12-dev\GCC64RT\plugins\imageformats\libqwebp.a -Lc:\libQT-5.12-dev\GCC64RT\plugins\bearer c:\libQT-5.12-dev\GCC64RT\plugins\bearer\libqgenericbearer.a -Lc:\libOPENSSL-1.1.1-dev\GCC64RT\lib c:\libQT-5.12-dev\GCC64RT\lib\libQt5Widgets.a -luxtheme -ldwmapi c:\libQT-5.12-dev\GCC64RT\lib\libQt5Gui.a -lgdi32 -lcomdlg32 -loleaut32 -limm32 c:\libQT-5.12-dev\GCC64RT\lib\libqtlibpng.a c:\libQT-5.12-dev\GCC64RT\lib\libqtharfbuzz.a c:\libQT-5.12-dev\GCC64RT\lib\libQt5Concurrent.a c:\libQT-5.12-dev\GCC64RT\lib\libQt5Network.a -ldnsapi -liphlpapi c:\libOPENSSL-1.1.1-dev\GCC64RT\lib\libssl.a c:\libOPENSSL-1.1.1-dev\GCC64RT\lib\libcrypto.a -lcrypt32 c:\libQT-5.12-dev\GCC64RT\lib\libQt5Core.a -lmpr -lnetapi32 -luserenv -lversion -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lwinmm -lz -lsicuin -lsicuuc -lsicudt c:\libQT-5.12-dev\GCC64RT\lib\libqtpcre2.a release\cpaster_resource_res.o
      C:/ProgramData/Mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lCore4
      collect2.exe: error: ld returned 1 exit status
      mingw32-make[4]: *** [Makefile.Release:98: ../../../../bin/cpaster.exe] Error 1
      mingw32-make[4]: Leaving directory 'c:/QTCREATOR-4.8.0-dev/build/src/plugins/cpaster/frontend'
      mingw32-make[3]: *** [Makefile:36: release] Error 2
      mingw32-make[3]: Leaving directory 'c:/QTCREATOR-4.8.0-dev/build/src/plugins/cpaster/frontend'
      mingw32-make[2]: *** [Makefile:78: sub----plugins-cpaster-frontend-make_first] Error 2
      mingw32-make[2]: Leaving directory 'c:/QTCREATOR-4.8.0-dev/build/src/tools'
      mingw32-make[1]: *** [Makefile:175: sub-tools-make_first-ordered] Error 2
      mingw32-make[1]: Leaving directory 'c:/QTCREATOR-4.8.0-dev/build/src'
      mingw32-make: *** [Makefile:42: sub-src-make_first-ordered] Error 2

      while path to missing binary is:

      c:\QTCREATOR-4.8.0-dev\build\lib\qtcreator\plugins\libCore.a
      

       

      and MSVC:

              cd ..\plugins\cpaster\frontend\ && ( if not exist Makefile c:\libQT-5.12-dev\MSVC64RT\bin\qmake.exe -o Makefile c:\QTCREATOR-4.8.0-dev\build\src\plugins\cpaster\frontend\frontend.pro "CONFIG-=precompile_header" "QTC_PREFIX=c:\QTCREATOR-4.8.0-dev\build\..\MSVC64RT" ) && C:\Windows\jom.exe -f Makefile
              C:\Windows\jom.exe -f Makefile.Release
              link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /VERSION:4.7 /MANIFEST:embed /OUT:..\..\..\..\bin\cpaster.exe @C:\Users\test\AppData\Local\Temp\cpaster.exe.11972.16.jom
      LINK : fatal error LNK1181: cannot open input file 'Core4.lib'
      jom: c:\QTCREATOR-4.8.0-dev\build\src\plugins\cpaster\frontend\Makefile.Release [..\..\..\..\bin\cpaster.exe] Error 1181
      jom: c:\QTCREATOR-4.8.0-dev\build\src\plugins\cpaster\frontend\Makefile [release] Error 2
      jom: c:\QTCREATOR-4.8.0-dev\build\src\tools\Makefile [sub----plugins-cpaster-frontend-make_first] Error 2
      jom: c:\QTCREATOR-4.8.0-dev\build\src\Makefile [sub-tools-make_first-ordered] Error 2
      jom: c:\QTCREATOR-4.8.0-dev\build\Makefile [sub-src-make_first-ordered] Error 2

      while path to missing binary is:

      c:\QTCREATOR-4.8.0-dev\build\lib\qtcreator\plugins\Core.lib
      

      Reproduced for:

      • static builds using mingw-w64, Windows ICC and MSVC,

      not reproduced for:

      • shared builds using mingw-w64, Windows ICC and MSVC.

       

      Best,

      Alexander

       

      Attachments

        Issue Links

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

          Activity

            People

              con Eike Ziller
              sav sav
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes