Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72018

Qt/AUTOMOC cross-compile problems

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.9.6
    • Build tools: moc
    • 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)
    • All

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            forderud Fredrik Orderud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes