application (Qt Quick) - only 'Desktop' in Supported Platforms
-
Hello folks,
I have finally decided to spend the next 6mnths learning qt and app development (i know, 6mnths will get me to the first few steps of a long learning ladder) and, I am super excited to start.
So it has been only a few days and the first thing that i noticed is that I can't get 'Android' under Supported Platforms when I try to start a New Project>Application (Qt) or Application (Qt Quick); all the other options (Applications (Qt for Phyton), Library, Non-Qt Project, seem to include 'Android' as a Supported Platform.
I am probably not doing-something in the project settings or I am missing some plugin/package.
This brings the question: would a Qt-Quick Application for Desktop be adaptable to Android device? (please, be gentle if I asked a really dumb question).
Thanks
edit: sorry i forgot to mention my specs: Qt-Creator 5.0.3 / Qt Designer 5.15.3 / OS Slackware current on Xeon processor, nVidia 6GB, 32GB RAM -
@freenico Did you install Qt for Android?
You should start here: https://doc.qt.io/qt-5/android.html -
HI 'jsulm' and thank you for your input.
I have been in&out of that page many times and I must admit that at first it felt like being French trying to understand Chinese.
However, after several attempts i (think) managed to install all the components for Qt Android. Below I copy-pasted from Tools > Options > Devices in my Qt creator:Java Settings are OK. Android settings are OK. (SDK Version: 5.0, NDK Version: 21.3.6528147) OpenSSL Settings are OK.
In Tools>Options>Kits, Android and Desktop (default) are listed under Manual. I tried to change the 'Default' to Android and it still does not appear under Supported Platforms when I start a New Project>Application(Qt Quick)>any of the subformats (Empty, Scroll, Stack and/or Swipe).
-
@freenico said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
In Tools>Options>Kits, Android and Desktop (default) are listed under Manual.
Manual? not automatic?
what's the icon for the kit is it an exclamation point (red or yellow) ? what does it say, when you hover over it?
for example see my load out, couple of kits are non functional (the red !) some have something wrong/missing (yellow !) the ones working have a device specific icon
-
Thanks again,
well, the 'Auto-detected' section in my Tools>Options>Kits is empty.
Nothing shows there even when I connect my Android phones (tried with Samsung and Huawei)
Maybe worth mentioning that both phones are old and run on Nougat 7 which I think i installed through Android Studio. Also interesting, when i tried to run the emulator it started lasted maybe 30secs and then it stalled my entire system and I had to hard-reset; this happened both on Android Studio and Qt Creator -
@J-Hilk said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
@freenico ok,
what Qt version did you install for the kit ?Sorry J.,
that's chinese to me, agaain.
"Qt install for the Kit?"
I have the Qt that comes with the standard installation of Slackware, Qt 5.15; then I installed the Qt Creator via sbopkg by Ponce.
I didn't even know I could install another Qt version for the Kit or, am i misreading your question?
How would I install another version for the Kit? -
@jsulm said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
@freenico You need to install Qt for Android if you want to develop for Android.
Please show you "Qt Versions" tab.Is Qt Android a separate package? if so, where would I find it? (there is nothing on this page https://doc.qt.io/qt-5/android.html )
Why is the Androis tab in Tools>Options>Devices showing that ALL the android settings are 'OK'?
-
@freenico Please show the "Qt Versions" content! Its next to "Kits" tab which you posted before.
"Why is the Androis tab in Tools>Options>Devices showing that ALL the android settings are 'OK'?" - because those are not Qt related but needed to develop Android apps.
Again: you need to install Qt for Android...
-
@jsulm said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
@freenico Please show the "Qt Versions" content! Its next to "Kits" tab which you posted before.
"Why is the Androis tab in Tools>Options>Devices showing that ALL the android settings are 'OK'?" - because those are not Qt related but needed to develop Android apps.
Again: you need to install Qt for Android...
Jsul, I really than you for the input and help but I feel like I am trying so say "where is the toilet" in a language and being replied "the sky is blue" in another language, and expected to find it
Anyway, i attached the Qt Versions screenshot below
when I search: Qt dor Android packageor 'how to' this is what i get:
-
@freenico said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
Is Qt Android a separate package? if so, where would I find it? (there is nothing on this page https://doc.qt.io/qt-5/android.html )
its not implicitly stated but at least different Qt versions are mentioned
https://doc.qt.io/qt-5/android-getting-started.html#installing-the-android-sdk-essentials
as they require different NDK versions.You first 2 Screenshots show the version of Qt used to build the QtDesigner and QtCreator. Those are development tools, that are designed and build with Qt. Qt itself is a framework/library. That comes in different versions and flavours. Depending on what system you want to build your application for, you either have to download the precompiled binaries or compile Qt yourself via the open source source code :D
as far as I know Slackware is linux distro, so see this link for the online installer
it should detect your os and give you the correct one.
The online installer allows you to select what qt version you want to install, I would not recommend installing everything.
-
@freenico You did not install Qt for Android. Go to https://www.qt.io/, download Qt online installer, start it and install Qt for Android.
-
@J-Hilk thank you. That's all I was hoping.
I know that forum's help is not supposed to the job for you; I am happy to go and roll my sleeves up if i get pointed to the right direction.
I will take a look at the online installer.
Thanks Jsulm -
@J-Hilk said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
The online installer allows you to select what qt version you want to install, I would not recommend installing everything.
I am there now. Why would you not recommend that?
Which box would you recommend I should tick?
It gives me three options:
Design Tools
Qt 6.2 for Desktop Development
Qt 6.2 for mobile developmentIs Qt 6.2 for mobile development a synonym of Qt for Android?
-
@freenico said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
Why would you not recommend that?
Because most probably you do not need everything. Qt binaries are quite big, so only install what you need.
"Qt 6.2 for mobile development" - is this expandable? I did not use recent installer, so not sure. -
@jsulm said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
"Qt 6.2 for mobile development" - is this expandable? I did not use recent installer, so not sure.
no, it is not! there is just a thick-box ( i see after it would give the option to select components, maybe there i would have more options)
-
@freenico said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
@J-Hilk said in application (Qt Quick) - only 'Desktop' in Supported Platforms:
The online installer allows you to select what qt version you want to install, I would not recommend installing everything.
I am there now. Why would you not recommend that?
Which box would you recommend I should tick?
It gives me three options:
Design Tools
Qt 6.2 for Desktop Development
Qt 6.2 for mobile developmentIs Qt 6.2 for mobile development a synonym of Qt for Android?
I haven't used the online installer since Qt6 was released, as a Qt5 commercial user I refuse to participate in the new commercial Qt6 Scam,
Anyway, it used to be that you could select almost all versions for all platforms. Since the good all days, it seems the installer got some love.
Nowadays you only see, by default, the latest version that you can actually use on your platform.
So Linux Desktop and Android mobile.
In that case, fell free to install both, if you want to develop for both.
Is Qt 6.2 for mobile development a synonym of Qt for Android?
under linux, yes