Bug 399454

Summary: ECMAndroidDeployQt should also check ${prefix}/qml
Product: [Frameworks and Libraries] extra-cmake-modules Reporter: Ilya Bizyaev <bizyaev>
Component: AndroidToolchainAssignee: Aleix Pol <aleixpol>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ecm-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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!