Solved ERROR: Cannot detect Android NDK toolchain.
-
Hi All,
iam trying to build Qt Android Source Code on MACOS.
MACOS Version - Catalina 10.15.5
Qt Source Code - 5.12.2 "https://download.qt.io/archive/qt/5.12/5.12.2/single/"
Android NDK -
- android-ndk-r17c
- android-ndk-r19c
- android-ndk-r10e
Qt_AndroidBuild.sh
./configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk android-ndk-r17c -android-sdk sdk -android-ndk-host darwin-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtserialport -no-warnings-are-errors
I have tried all the 3 NDK's, but still its giving me the below error:-
Iam trying to follow this article or document "https://wiki.qt.io/Android"
Please can someone help me on this or guide me.
@SGaist @J-Hilk @sierdzio @mrjj @Pablo-J-Rogina @jsulm @KroMignon @ekkescorner -
taken from https://doc.qt.io/qt-5/android-getting-started.html
Note: If your Qt version is earlier than v5.9, use the SDK tools package v25.2.5 or earlier.
You're using 5.12 so I would suggest 26, I'm personally using 26.1.1
-
Hi @J-Hilk ,
iam also using SDK Version 26.1.1. But i guess there is some problem with NDK android toolchain version,i have tried using using the "android-toolchain-version 4.9", but it did not work. Have i specified something wrong in the command or am i missing something. Because with respect to "https://wiki.qt.io/Android", they have not specified any android-toolchain-version in there command. So whether specify the android toolchain version or not, its giving me the same error.
-
@Shrinidhi-Upadhyaya may I ask why you want to build Qt yourself instead of using the installer?
-
Actually iam working on WebView qml for Android, so i have URL which does not load, so i want to add a function called setDomStorageEnabled() in QtAndroidWebViewController.java .
You can check this out
-
Solved by adding the complete path to the SDK and NDK.