Building Qt 5.15.0 for android on windows failed
-
Hi everybody.
I am currently building Qt 5.15.0 source for android on windows with mingw64-8.1 compiler but unfortunately, i get the following error.
What could be the cause of this error.i do appreciate your help.
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.
-
Hi everybody.
I am currently building Qt 5.15.0 source for android on windows with mingw64-8.1 compiler but unfortunately, i get the following error.
What could be the cause of this error.i do appreciate your help.
@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. -
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.
@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.
-
@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.
-
@massi_z -platform specifies the host platform (Windows in your case). -xplatform specifies target platform when doing cross compilation (Android in your case). See "configure -h".
@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:
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. -
@jsulm I use android-clang provided in path "D:\Android\android-ndk\android-ndk-r21d\toolchains\llvm\prebuilt\windows-x86_64\bin" to compile code.
Is Qt releasing prebuild version right now?@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).