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

CMake linking with Qt static build fails on win32/mingw platform

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      78a6b807195b5dee50f5f6b2e1a86f49af60cb39 (qt/qtbase/5.14)

      Description

      Trying to build simple application generated in Qt Creator using template "Qt Widgets Application" with choosen CMake build system fails at link stage when using Qt being statically cross-compiled for mingw.

      It outputs lots of "undefined reference" errors.

      The reason is improperly generated Qt5<MODULE>Config.cmake files containing wrong paths to modules .prl files, where CMAKE_PRL_FILE_LOCATION_* values populated by qtbase/mkspecs/features/create_cmake.prf contains prefix "lib" in base filename.

      Fixing their definitions for mingw platform resolves issue. Not sure about other platfrom variants, which may be broken too.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              artem_pisarenko Artem Pisarenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes