Setting up the android tool chain
-
wrote on 4 Feb 2020, 15:13 last edited by
Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9
I have installed the NDK and SDK ( Sdk over the android developer suite) (https://doc.qt.io/qt-5/android-getting-started.html)
In the Qt Creator under Devices the green arrows shows NDK SDK and Java OK.
But if i want to compile any example project i get errors:
qmake -> Cannot run target compiler i686-linux-android-g++
Ok the g++ is not include the NDK r21
cmake -> No target architecture defined in json file.
CLang ok, androiddeployqt Error 2,(android developer suite works ok with emulator)
Thanks for help. -
Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9
I have installed the NDK and SDK ( Sdk over the android developer suite) (https://doc.qt.io/qt-5/android-getting-started.html)
In the Qt Creator under Devices the green arrows shows NDK SDK and Java OK.
But if i want to compile any example project i get errors:
qmake -> Cannot run target compiler i686-linux-android-g++
Ok the g++ is not include the NDK r21
cmake -> No target architecture defined in json file.
CLang ok, androiddeployqt Error 2,(android developer suite works ok with emulator)
Thanks for help.hi and welcome @sirAnton said in Setting up the android tool chain:
NDK r21+Sdk+Qt 5.9.9
you actually quoted the android getting started page in your post,
you're using the wrong NDK version for Qt 5.9
-
Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9
I have installed the NDK and SDK ( Sdk over the android developer suite) (https://doc.qt.io/qt-5/android-getting-started.html)
In the Qt Creator under Devices the green arrows shows NDK SDK and Java OK.
But if i want to compile any example project i get errors:
qmake -> Cannot run target compiler i686-linux-android-g++
Ok the g++ is not include the NDK r21
cmake -> No target architecture defined in json file.
CLang ok, androiddeployqt Error 2,(android developer suite works ok with emulator)
Thanks for help.wrote on 4 Feb 2020, 15:44 last edited by koahnig 2 Apr 2020, 15:45Hi and welcome in devnet forum
@sirAnton said in Setting up the android tool chain:
Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9
This will not work. NDK is too young for it.
Try a recent version of Qt libs compiled for Android with a recent version of SDK and NDK.
That is on windows 10 64 bit
AFAIK the compiler changed with Qt5.12. You would need to check docs what was recommended with Qt5.9.
-
wrote on 5 Feb 2020, 07:12 last edited by
Thanks,
( I have installed Qt5.14.1 and changed the Sdk to 26.x.x)
2/4