Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2, 6.5
-
None
Description
The shared examples project (examples/quick/shared) gets installed into wrong path when the examples are build with the declarative module (-DQT_BUILD_EXAMPLES=ON). When built separately, the installation goes to correct paths.
$ ~/Qt/6.5.0/gcc_64/bin/qt-cmake-private ~/development/qt/qt5/qtdeclarative -DQT_BUILD_EXAMPLES=ON $ cmake --build . --target examples/quick/animation/install [0/1] Install the project... -- Install configuration: "RelWithDebInfo" -- Up-to-date: /home/sapiippo/Qt/6.5.0/gcc_64/examples/quick/animation/examples/quick/animation/shared/libanimation_shared.so -- Up-to-date: /home/sapiippo/Qt/6.5.0/gcc_64/examples/quick/animation/examples/quick/animation/shared/qmldir -- Up-to-date: /home/sapiippo/Qt/6.5.0/gcc_64/examples/quick/animation/./animationexample $ ~/Qt/6.5.0/gcc_64/examples/quick/animation/animationexample qrc:/qt/qml/animation/animation.qml:5:1: module "shared" is not installed import shared as Examples
$ ~/Qt/6.5.0/gcc_64/bin/qt-cmake-private ~/development/qt/qt5/qtdeclarative/examples/quick/animation/ $ DESTDIR=/tmp cmake --build . --target install [0/1] Install the project... -- Install configuration: "" -- Installing: /tmp/usr/local/examples/quick/animation/shared/libanimation_shared.so -- Set runtime path of "/tmp/usr/local/examples/quick/animation/shared/libanimation_shared.so" to "$ORIGIN/../../lib" -- Installing: /tmp/usr/local/examples/quick/animation/shared/qmldir -- Installing: /tmp/usr/local/examples/quick/animation/animationexample -- Set runtime path of "/tmp/usr/local/examples/quick/animation/animationexample" to ""
Attachments
Issue Links
- relates to
-
QTBUG-96232 Figure out how to build examples as ExternalProjects in a prefix build setup so it can be used in the CI
- In Progress