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

QML examples installation path is bogus when cross-compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.0
    • Examples and Demos
    • None

    Description

      • cross-compile all of qt6 with PREFIX=/home/builder/dest/qt6-aarch64-dev-20230314-8b12598b
      • ninja install and then make a tarball of PREFIX and transfer it to the target device
      • Most examples (QML or not) run fine
      • Some can't find the "shared" module

      For example:

      $ pwd
      /home/builder/dest/qt6-aarch64/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 nested hierarchy containing the needed files:

      $ tree /home/builder/dest/qt6-aarch64-dev-20230314-8b12598b/examples/quick/imageelements
      /home/builder/dest/qt6-aarch64-dev-20230314-8b12598b/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.

      Attachments

        Activity

          People

            mitch_curtis Mitch Curtis
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: