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

Cannot build Qt Android with -no-feature-accessibility

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.2.4
    • Build System: CMake
    • None
    • Mac OS 10.15.7
    • Android

    Description

      I try to build Qt Android without accessibility feature but when I configure there is a warning :

      .../configure -platform android-clang -prefix .../install-qt-android-arm64-v8a -android-ndk .../ndk/23.1.7779620 -android-sdk .../sdk -qt-host-path .../install-qt-mac -android-abis arm64-v8a -no-feature-accessibility
      WARNING: Accessibility disabled. This configuration of Qt is unsupported.

      And then when I build there is an error :

      .../build-qt-android-arm64-v8a/qtbase/include/QtGui/6.2.4/QtGui/private/../../../../../../../../Src/qtbase/src/gui/accessible/qaccessiblebridgeutils_p.h:59:1: error: static_assert failed due to requirement 'bool(-1 == 1)' "Required feature accessibility for file .../Qt6/6.2.4/custom/build-qt-android-arm64-v8a/qtbase/include/QtGui/6.2.4/QtGui/private/../../../../../../../../Src/qtbase/src/gui/accessible/qaccessiblebridgeutils_p.h not available."
      QT_REQUIRE_CONFIG(accessibility);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      .../build-qt-android-arm64-v8a/qtbase/include/QtCore/../../../../../Src/qtbase/src/corelib/global/qglobal.h:79:36: note: expanded from macro 'QT_REQUIRE_CONFIG'
      #define QT_REQUIRE_CONFIG(feature) Q_STATIC_ASSERT_X(QT_FEATURE_##feature == 1, "Required feature " #feature " for file " __FILE__ " not available.")
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

      Is it a bug or is it impossible to build Qt6 Android without feature accessibility? 

       

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            apap_ Loic Martin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes