81b5395aef (qt/qtbase/dev) 81b5395aef (qt/tqtc-qtbase/dev) 8562f3aee6 (qt/qtbase/6.4) 8562f3aee6 (qt/tqtc-qtbase/6.4) 869645bcf3 (qt/qtbase/6.3) 869645bcf3 (qt/tqtc-qtbase/6.3)
The attached demo code runs fine on Linux here, but fails for everything else I tried.
Android - in two places. The build process itself says
qmldir file not found at "/home/me/tmp/demo/ui"
Starting the application bails out on Android with
W libdemo_x86_64.so: QQmlApplicationEngine failed to load component W libdemo_x86_64.so: qrc:/demo/main.qml:10:5: Foo is not a type
Building for iOS stops with:
clang: error no such file or directory: '/User/<snip>/ui/Debug/libui.a'
Building for macOS, gives a linker warning:
<snip>/usr/bin/ranlib: file: ui/libuiplugin.a(mocs_compilation.cpp.o) has no symbols
Webassembly compilations doesn't - as Linux - have any complaints while building.
Webassembly and macOS run into
QQmlApplicationEngine failed to load component qrc:/demo/main.qml:10:5: Foo is not a type
when trying to start.
Originally, I just wanted to make the android problem visible, but that leaves me behind a bit confused. I'm using the same mechanism in a bigger application, and at least macOS is known to work. Either I'm missing something important, or somewhere else is missing something important
- relates to
QTCREATORBUG-26479 Handle custom CMake output dir for Android
QTBUG-93268 target_link_libraries does not work with a target name on iOS
QTBUG-98545 Provide CMake API for deployment support
|For Gerrit Dashboard: QTBUG-102595|
|416830,2||CMake: Check that android qml import paths are not empty||dev||qt/qtdeclarative||Status: MERGED||+2||0|
|416831,2||CMake: Android: Fix 'qmldir file not found at' warnings||dev||qt/qtbase||Status: MERGED||+2||0|
|416832,3||CMake: Android: Fix 'qmldir file not found at' warnings||6.3||qt/qtbase||Status: MERGED||+2||0|
|416833,5||CMake: Check that android qml import paths are not empty||6.3||qt/qtbase||Status: MERGED||+2||0|
|416834,4||CMake: Check that android qml import paths are not empty||tqtc/lts-6.2||qt/tqtc-qtbase||Status: MERGED||+2||0|
|416917,2||CMake: Check that android qml import paths are not empty||6.4||qt/qtdeclarative||Status: MERGED||+2||0|
|417070,2||CMake: Android: Fix 'qmldir file not found at' warnings||6.4||qt/qtbase||Status: MERGED||+2||0|