Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.0 RC
-
None
-
Archlinux
-
-
7a7064e14f094e843e1ee832cc927e86f887621a 47cb1bb53f4882ca7f00e2286f279279d8b74715 d05da5f306c7c30616d33fe540e64dd2fee46924 b1fc45dbbfcca3ed0c489c01a5faa2f87ed09a35
Description
I tried build application as described at one of new posts in blog about qt_add_qml_module with CMake. It works on desktop linux but it fails on Android with error:
W libqt_add_qml_module_test_arm64-v8a.so: qrc:/Test/main.qml:11:3: ExtraButton is not a type
Also I found out that without that 2 modifications QtCreator doesn't see plugins declared by qt_add_qml_module:
// CMakeList.txt from executable
set(QML_IMPORT_PATH ${CMAKE_BINARY_DIR} CACHE STRING "" FORCE)
// CMakeList.txt from sub-project I had to add DESIGNER_SUPPORTED option which was not described as required qt_add_qml_module(test_extra URI "TestExtra" VERSION 1.0 QML_FILES ExtraSingleton.qml ExtraButton.qml DESIGNER_SUPPORTED )
I attach minimal working project
Attachments
For Gerrit Dashboard: QTBUG-96898 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
377098,19 | Use correct plugin name for Android QML plugins | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
378692,24 | Stage all qml modules to a common directory when building for Android | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
378729,6 | Add Android qml staging prefix to qml import paths | dev | qt/qtbase | Status: MERGED | +2 | 0 |
379474,2 | Use correct plugin name for Android QML plugins | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
379475,2 | Stage all qml modules to a common directory when building for Android | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
379549,3 | Add Android qml staging prefix to qml import paths | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |