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

Prefix builds of qtdeclarative with examples are faced with an empty default import path when building the examples

    XMLWordPrintable

Details

    Description

      The QML import path provided by Qt is only populated once you install the build of qtdeclarative. However, when building the examples, we already try to load modules from that path.

      For example, I'm configuring qtdeclarative in a directory /home/ulf/dev/qt6dev-examples/qtdeclarative with:

      /home/ulf/work/install/bin/qt-cmake-private /home/ulf/dev/qt6dev-src/qtdeclarative
      

      /home/ulf/work/install is the place where I've installed qtbase and qtshadertools before. This makes qmlcachegen, qmllint, etc look in /home/ulf/work/install/qml for QML modules provided by Qt. This directory is only created once I install qtdeclarative, though. Before, the QML modules belonging to qtdeclarative can be found in /home/ulf/dev/qt6dev-examples/qtdeclarative/qml .

      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
              ulherman Ulf Hermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes