Qt Creator and Android NDK
-
wrote on 5 Apr 2020, 00:53 last edited by
Hello,
I got an issue with setting the Android NDK and kit creation.
Qt Creator 4.11.2 doesn't create the Android tool chains correctly here when NDK 10e is selected.There's no error but the tool chains have no compiler set even after restarting Qt Creator. The compiler is actually missing and not detected.
Since I have no idea which compiler to set up, what could be the reason for this?
-
Hello,
I got an issue with setting the Android NDK and kit creation.
Qt Creator 4.11.2 doesn't create the Android tool chains correctly here when NDK 10e is selected.There's no error but the tool chains have no compiler set even after restarting Qt Creator. The compiler is actually missing and not detected.
Since I have no idea which compiler to set up, what could be the reason for this?
-
wrote on 5 Apr 2020, 12:02 last edited by
Qt version is 5.11.3. I haven't changed the SDK since I did the very same but with most likely some previous version of Qt Creator.
-
wrote on 5 Apr 2020, 12:16 last edited by
Taking the information at https://doc.qt.io/qt-5/android-getting-started.html would mean SDK and NDK versions should both be correct.
-
Taking the information at https://doc.qt.io/qt-5/android-getting-started.html would mean SDK and NDK versions should both be correct.
wrote on 5 Apr 2020, 12:24 last edited by@Padlock said in Qt Creator and Android NDK:
Taking the information at https://doc.qt.io/qt-5/android-getting-started.html would mean SDK and NDK versions should both be correct.
Yes, I was just checking this.
I do not remember what I had used with ndk 10e, possibly sdk 23.something. I have changed the clang versions and I would try to get sdk and ndk version release dates closer together. Just for minimizing issues.
Currently I am using Qt5.12.7 with the appropriate ndk. That works for me.
With Qt5.14.1 I had issues but apparently it messed up during installation. However others seem to be fine also with 5.14. -
wrote on 5 Apr 2020, 14:34 last edited by
This might be a very silly question but how do I change the SDK version?
-
wrote on 5 Apr 2020, 15:25 last edited by
I installed AndroidStudio which has SDK Manager under tools. That's what I am using. IIRC I have seen or even used a stand-alone SDK manager. That's for windows.
The sdk is installed under AppData/local which I copy to another disk for keeping track of versions. However, I might be too cautious.
-
wrote on 5 Apr 2020, 15:28 last edited by
Yes, the SDK is installed there but I was under the impression that that folder contains many different SDKs. I got several installed. But how would I tell Qt Creator which one to use?
-
Yes, the SDK is installed there but I was under the impression that that folder contains many different SDKs. I got several installed. But how would I tell Qt Creator which one to use?
-
wrote on 5 Apr 2020, 15:48 last edited by
Do you mean SDK Platforms in Android Studio?
This matches my configuration too with one exception.
But how do I tell Qt Creator which one of those to use? -
wrote on 5 Apr 2020, 16:10 last edited by
I think this page (https://doc.qt.io/qtcreator/creator-developing-android.html) is supposed to contain this information but I can't find anything.
-
wrote on 5 Apr 2020, 16:35 last edited by
Sorry beyond my experience.
in qt creator Options->Devices->Android at the bottom there is also avd and sdk manager, but you cannot change there.
The only possible way I see at the moment would be deinstalling and just leave the last which is ackward.However, I am guy trying to stay with something that works. Sometimes testing with switching between different versions forth and back. It drove me nuts that a simple update in AndroidStudio killed essentially my toolchains.
As explained above, I have copied the Android stuff onto a separate disk. Unfortunately Qt creator is not helpful enough in changing toolchains for Android, but I think the true reason is Android where they think that one has to use the latest versions.
That is what I am using at the moment:
I have another set of folders for Qt5.14.1. I know that I have duplicated a lot there, but I got my toolchains finally to work. That's what counts. Renaming 2 folders under devices and I have the other toolchain. It is stupid, but works.
BTW Qt5.12.1 and Qt5.12.7 may use the same sdk and ndk.
-
wrote on 5 Apr 2020, 17:50 last edited by
Thanks for your suggestion. I'll probably end up doing the same unless we overlooked something and there is another way to feed Qt Creator with the desired SDK version. I still haven't given up hope that it's not that complicated. ;-)
-
Thanks for your suggestion. I'll probably end up doing the same unless we overlooked something and there is another way to feed Qt Creator with the desired SDK version. I still haven't given up hope that it's not that complicated. ;-)
wrote on 5 Apr 2020, 18:41 last edited by@Padlock said in Qt Creator and Android NDK:
Thanks for your suggestion. I'll probably end up doing the same unless we overlooked something and there is another way to feed Qt Creator with the desired SDK version. I still haven't given up hope that it's not that complicated. ;-)
I am very happy getting proofed wrong. ;)
-
wrote on 6 Apr 2020, 15:20 last edited by
I don't know if there's another way but yours surely worked for me. Thanks a lot!
1/15