Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85184

Link error when building on windows with fontconfig enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: Core: Plugins
    • Labels:
      None
    • Commits:
      04b120bc3c6fd20ff47582fd4e0ba30e1f3677ae (qt/qtbase/dev)

      Description

      Fontconfig was detected:

      -- Found Fontconfig: C:/Strawberry/c/lib/libfontconfig.a (found version "2.13.1") 
         Fontconfig ............................ yes

      But near the end, the Ninja build failed:

      [1397/1517] Linking CXX shared module plugins\platforms\qminimal.dll
      FAILED: plugins/platforms/qminimal.dll src/plugins/platforms/minimal/QMinimalIntegrationPlugin.version 
      cmd.exe /C "cmd.exe /C "cd /D D:\a\qtbase\qtbase\src\plugins\platforms\minimal && "C:\Program Files\Git\usr\bin\perl.exe" D:/a/qtbase/qtbase/mkspecs/features/data/unix/findclasslist.pl < D:/a/qtbase/qtbase/build/src/plugins/platforms/minimal/QMinimalIntegrationPlugin.version.in > D:/a/qtbase/qtbase/build/src/plugins/platforms/minimal/QMinimalIntegrationPlugin.version && cd D:\a\qtbase\qtbase\build" && C:\ProgramData\chocolatey\bin\c++.exe  -g  -Wl,--no-undefined -Wl,--version-script,D:/a/qtbase/qtbase/build/src/plugins/platforms/minimal/QMinimalIntegrationPlugin.version -shared -o plugins\platforms\qminimal.dll -Wl,--major-image-version,0,--minor-image-version,0 src/plugins/platforms/minimal/CMakeFiles/QMinimalIntegrationPlugin.dir/QMinimalIntegrationPlugin_autogen/mocs_compilation.cpp.obj src/plugins/platforms/minimal/CMakeFiles/QMinimalIntegrationPlugin.dir/main.cpp.obj src/plugins/platforms/minimal/CMakeFiles/QMinimalIntegrationPlugin.dir/qminimalbackingstore.cpp.obj src/plugins/platforms/minimal/CMakeFiles/QMinimalIntegrationPlugin.dir/qminimalintegration.cpp.obj  lib/libQt6Gui.a  lib/libQt6Core.a  -lmpr  -luserenv  -ld3d11  -ldxgi  -ldxguid  C:/Strawberry/c/lib/libfreetype.a  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
      src/plugins/platforms/minimal/CMakeFiles/QMinimalIntegrationPlugin.dir/qminimalintegration.cpp.obj: In function `QFontconfigDatabase::QFontconfigDatabase()':
      D:/a/qtbase/qtbase/src/gui/text/unix/qfontconfigdatabase_p.h:61: undefined reference to `__imp__ZTV19QFontconfigDatabase'
      collect2.exe: error: ld returned 1 exit status 

      Full log is here.

      This is most likely a recent (~2 weeks) regression, the build used to pass.

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes