Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6.0
-
None
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
- depends on
-
QTBUG-90820 Build examples as external projects within the main build
- In Progress
- is duplicated by
-
QTBUG-124264 appStocQt example does not run after building and installing Qt
- Closed
- relates to
-
QTBUG-112490 examples/quickcontrols/filesystemexplorer/filesystemexplorerapp does not run
- Closed
-
QTBUG-125153 cmake: Deployment of shared module fails with Xcode (non-ninja) generator during the post build step (not during installation)
- Closed
-
QTQAINFRA-5550 Test that installed examples actually run
- Reported