Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
5.9.6
-
None
-
Development platform: Windows 10, Android NDK 18 with clang 7.0.2, CMake 3.12.1.
Target platform: Android 21 on 64bit ARM (aarch64)
Description
Associated CMake issue link: https://gitlab.kitware.com/cmake/cmake/issues/18623 The root cause of this problem might lie within CMake. However, I'm also registering it here to increase visibility for Qt developers.
I'm experiencing problems when attempting to cross-compile a CMake-based Qt 5.12 project that relies on AUTOMOC.
Observed MOC problems:
The --target=aarch64-none-linux-android21 flag is forwarded to all C++ compilation, but does not propagate to moc.exe during AUTOMOC. This causes moc to believe that it's targeting Windows instead of Android.
An extra -DWIN32 is instead added to the moc.exe arguments. This appear to be a bug, since I'm targeting Android.
Steps to reproduce can be found on the associated CMake issue.