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

Building against Android NDK r27 fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.7.2
    • QPA: Android
    • None
    • Android
    • 236c6ec6f (dev), 1079d210d (6.8), 27321bb7f (6.7)
    • 2024wk32s2FOQtforAndroid, 2024wk34s2FOQtforAndroid

    Description

      Trying to build Qt 6.7.2 against NDK r27 runs into:

      /home/dev/.conan/data/android_ndk_installer/r27/bje/stable/package/47a5957842a59e110cd830aaab2922c58e79a9a4/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__utility/declval.h:31:17: error: static assertion failed due to requirement '!__is_same(int, int)': std::declval can only be used in an unevaluated context. It's likely that your current usage is trying to extract a value from the function.
         31 |   static_assert(!__is_same(_Tp, _Tp),
            |                 ^~~~~~~~~~~~~~~~~~~~
      /home/dev/.conan/data/qt/6.7.2/bje/stable/source/qt6/qtbase/src/corelib/kernel/qjnitypes.h:130:26: note: in instantiation of function template specialization 'std::declval<int>' requested here
        130 |     return function(std::declval<Args>()...);
            |                          ^
      

      Attachments

        Issue Links

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

          Activity

            People

              villevoutilainen_qt Ville Voutilainen
              cajus Cajus Pollmeier
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes