Building Qt 5.15.0 for android on windows failed
-
Hi and welcome to devnet forum
What are the guidelines you are following for Qt compilation for Android?
When you refer to MinGW64-8.1 this would be the compiler toolchain to be used for compilation for use with windows.
Typically you need a different toolchain for your target platform.
-
@massi_z said in Building Qt 5.15.0 for android on windows failed:
I am currently building Qt 5.15.0 source for android
Why? Why don't you use prebuild Qt for Android?
You should use the compiler provided with the Android NDK. -
@koahnig Thanks alot.
I use the guidelines provided in the link bellow:
https://wiki.qt.io/Building_qt-android_on_windows
except that i use android-clang compiler to compile qt source code.One question that has been on my mind is the difference between between -platform and -xplatform.
-
@jsulm Thanks.
I use this command to configure.
"configure -static -release -opensource -confirm-license -prefix "C:\Qt5.15.0\qt-everywhere-src-5.15.0\build" -android-sdk %ANDROID_SDK_ROOT% -android-ndk %ANDROID_NDK_PATH% -android-ndk-platform android-28 -android-abis arm64-v8a,armeabi-v7a -nomake examples -nomake tests -platform win32-g++ -xplatform android-clang"
Because I think the host is Windows, i used the version of MinGw mentioned in the site https://wiki.qt.io/MinGW -
@massi_z said in Building Qt 5.15.0 for android on windows failed:
Is Qt releasing prebuild version right now?
Yes, you can install Qt for Android using online installer (or Qt Maintenance Tool if Qt is already installed).