Skip to content

Android: build failure with ndk 27-beta1 due to use of deprecated ALooper_pollAll #9792

Closed
@madebr

Description

@madebr

Building SDL3 with ndk 27-beta1 fails with the following error:

/home/maarten/projects/SDL/src/sensor/android/SDL_androidsensor.c:73:13: error: 'ALooper_pollAll' is unavailable: obsoleted in Android 1
   73 |         if (ALooper_pollAll(-1, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
      |             ^

Configuring with -DCMAKE_C_FLAGS="-Wno-error=deprecated" -DSDL_WERROR=OFF does not turn the error in a warning.

ALooper_pollAll documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions