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

Precompiled headers don't work on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.0
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      Windows, Android with NDK version 18
    • Platform/s:
      Android
    • Commits:
      6acab25f97820023b9998359e6ca79cf11a4ab5c (qt/qtbase/5.15) 059172c6332167253760dff419d1f1221185281e (qt/qtbase/5.15)

      Description

      Using precompiled headers when building for Android causes the build to fail.

      Attached is a simple project that uses a precompiled header "stable.h" as specified in the .pro.

      On Windows and OSX, the project compiles fine. On Android it produces a compile error, please see the attached log.txt

       

       

        Attachments

        1. ClangTestProject.zip
          2 kB
        2. log.txt
          3 kB
        3. PCHAndroidTest.zip
          3 kB

          Issue Links

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

            Activity

              People

              Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              mrb Marc Britton
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes