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

The android implementation is using an obsolete/deprecated/removed function ALooper_pollAll

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.8, 6.8.1, 6.9.0 FF
    • 6.8
    • Sensors
    • None
    • Android
    • 26b162974 (dev), d9244744a (6.8), 08c6db114 (tqtc/lts-6.5)
    • 2024wk34s2FOQtforAndroid, 2024wk44s3FOQtforAndroid

    Description

      /home/ville/kuutti/qt6/qtsensors/src/plugins/sensors/android/sensormanager.cpp:93:13:
      error: 'ALooper_pollAll' is unavailable: obsoleted in Android 1 - ALooper_pollAll may ignore wakes. Use ALooper_pollOnce instead. See The API documentation for more information 
        93 |         if (ALooper_pollAll(5 /ms/, nullptr, nullptr, nullptr) == ALOOPER_POLL_TIMEOUT)
           |             ^ 
      /home/ville/Android/Sdk/ndk/android-ndk-r27/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/ looper.h:228:5: note: 'ALooper_pollAll' has been explicitly marked unavailable here
        228 | int ALooper_pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) 
            |     ^
      

      Attachments

        Issue Links

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

          Activity

            People

              rampe Rami Potinkara
              villevoutilainen_qt Ville Voutilainen
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes