Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.6.0
-
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.