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: Unresolved
    • P2: Important
    • None
    • 6.8
    • Sensors
    • None
    • 2024wk34s2FOQtforAndroid

    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

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

        Activity

          People

            ahmedelkhazari Ahmed El Khazari
            villevoutilainen_qt Ville Voutilainen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes