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

qmlimportscanner: "qmldir file not found at" when configuring quickwidget example with static Qt

XMLWordPrintable

    • 909601f556f0ed6c2a6cf1cacf0790825c174b67 (qt/qtdeclarative/dev) 5b087368d6ece4b2536a79e2abf0921f0ab874da (qt/qtdeclarative/6.2)

      Build a static Qt, use it to configure the quickwidget example, observe warnings.

      $ ~/dev-mac-static/qtbase/bin/qt-cmake ~/Examples/Qt-6.2.0/quick/quickwidgets/quickwidget/
      
      qmldir file not found at "/Volumes/T3/Dev/projects/builds/build_quickwidget/QuickWidgetExample"
      qmldir file not found at "/Volumes/T3/Dev/projects/builds/build_quickwidget/QuickWidgetExample"
      

      There's a TODO in the code to consider how to address this
      https://github.com/qt/qtdeclarative/blob/1a85f784132f83211de431193d72cdf1e850f778/src/qml/Qt6QmlMacros.cmake#L922

      The warnings show up because the qml module deferred qmldir is run after the executable finalizer which runs qt_import_qml_plugins.

      https://github.com/qt/qtdeclarative/blob/1a85f784132f83211de431193d72cdf1e850f778/examples/quick/quickwidgets/quickwidget/CMakeLists.txt#L40

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

            crscott Craig Scott
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes