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

QML examples installation is bogus

    XMLWordPrintable

Details

    Description

      • configure qt5 repo with -make examples -prefix $HOME/dest/qt6-dest-dir
      • ninja && ninja install
      • Most examples (QML or not) run fine
      • Some can't find the "shared" module

      For example:

      $ pwd
      /home/builder/dest/qt6-dest-dir/examples/quick/imageelements 
      $ ./imageelementsexample 
      qrc:/qt/qml/imageelements/imageelements.qml:5:1: module "shared" is not installed 
           import shared as Shared 
           ^
      ```
      

      It turns out that in the directory of the example, there is a duplicated hierarchy ( examples/quick/imageelements/examples/quick/imageelements ) containing the needed files:

      $ tree /home/builder/dest/qt6-dest-dir/examples/quick/imageelements
      /home/builder/dest/qt6-dest-dir/examples/quick/imageelements
      ├── examples
      │   └── quick
      │       └── imageelements
      │           └── shared
      │               ├── libimageelements_shared.so
      │               └── qmldir
      └── imageelementsexample
      

      After moving the shared directory into the same directory as the example, the demo works - thanks to manordheim for debugging it.

      EDIT: I removed all the info specific with cross-compilation, since I verified the bug on a native build too.

      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
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes