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

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

XMLWordPrintable

    • Windows
    • 78a6b807195b5dee50f5f6b2e1a86f49af60cb39 (qt/qtbase/5.14)

      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.

        For Gerrit Dashboard: QTBUG-81401
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes