defold icon indicating copy to clipboard operation
defold copied to clipboard

ALooper_pollAll is removed in Android NDK to 27

Open JCash opened this issue 1 year ago • 0 comments

When testing the NSDK 27.1 version, I got this error:

../src/engine_main.cpp:86:20: 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
   86 |         if ((ident=ALooper_pollAll(300, NULL, &events, (void**)&source)) >= 0)
      |                    ^
/Users/mawe/Library/android/sdk/ndk/27.1.12297006/toolchains/llvm/prebuilt/darwin-x86_64/bin/../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)
      |     ^
1 error generated.

JCash avatar Sep 28 '24 09:09 JCash