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

Cannot build with Android NDK 21.3.6528147 - C++17 compiler error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.0
    • Build System
    • None
    • Mac 10.15.7
      Qt 6.2.0
      Qt Creator 5.0.2
      NDK 21.3.6528147 (version installed by Qt Creator)

    Description

      After updating from Qt 5.15.2 to Qt 6.2.0 I have the following build error :
      In file included from ../../../Qt/6.2.0/android_arm64_v8a/include/QtCore/QString:1:
      In file included from ../../../Qt/6.2.0/android_arm64_v8a/include/QtCore/qstring.h:50:
      In file included from ../../../Qt/6.2.0/android_arm64_v8a/include/QtCore/qchar.h:43:
      ../../../Qt/6.2.0/android_arm64_v8a/include/QtCore/qglobal.h:96:6: error: "Qt requires a C++17 compiler"
      # error "Qt requires a C++17 compiler"

       

      Clang compiler is still the same from Android NDK :
      Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            apap_ Loic Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes