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

QML examples installation path is bogus when cross-compiling

XMLWordPrintable

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

      • 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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes