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

CMake 3.16 issue in 6.5 with MinGW/GCC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3, 6.5.8
    • Build System: CMake
    • None
    • CMake 3.16
      Windows
      Ubuntu
      Yocto
    • Linux/X11, Linux/Yocto, Windows

    Description

      Building a simple project using static child modules fails to properly embed the QML resources. 
      This problem only happens with CMake 3.16, Qt <6.5, MinGW/GCC.
      It's fixed with CMake 3.19, Qt 6.7.2 or when using MSVC.

      I've made this MVP for Windows 6.5.3, to reproduce a bug that is occurring in 6.5.8 (Ubuntu and Yocto).

      Expected:

      • QML module importable
      • QML resources available at qrc:/qt/qml/Module/.....

      Current:

      • "QQmlApplicationEngine failed to load component
        qrc:/qt/qml/App/Main.qml:12:3: MyChild is not a type"
      • QML resource does not exist

       

      I've attached an MVP.
      MVP2.zip

      The file path is clickable, so you can confirm that qrc:/qt/qml/Child/..... does not exist.

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              mairtin.s Mairtin Steinkamp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes