Bug 399454 - ECMAndroidDeployQt should also check ${prefix}/qml
Summary: ECMAndroidDeployQt should also check ${prefix}/qml
Status: RESOLVED WORKSFORME
Alias: None
Product: extra-cmake-modules
Classification: Frameworks and Libraries
Component: AndroidToolchain (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-06 18:49 UTC by Ilya Bizyaev
Modified: 2022-12-01 07:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2018-10-06 18:49:45 UTC
SUMMARY
This line: https://cgit.kde.org/extra-cmake-modules.git/tree/toolchain/ECMAndroidDeployQt.cmake#n9
assumes that Qt's QML modules are located in ${prefix}/lib/qml, but that's not the case with Qt from qt.io where they are found in the qml subfolder.

As a workaround, one can create a link from lib/qml to qml.

STEPS TO REPRODUCE
1. Use Qt for Android from qt.io to build an Android app that uses CMake

OBSERVED RESULT
QML module search error

EXPECTED RESULT
Everything works fine
Comment 1 Aleix Pol 2018-10-08 15:01:36 UTC
Qt own dependencies are fetched ad-hoc by androiddeployqt, these shouldn't be necessary to pull at bulk. In fact, if we pulled them we'd see all Qt models being dragged, which would bloat the package.

Can you elaborate a bit more on the problem you're facing or how I can reproduce it?
Comment 2 Justin Zobel 2022-12-01 04:34:26 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!