I am building a C app for android, I use ‘sigemptyset‘ in my app, when I compile the code using NDK it is compiled successfully, but when running the app I get cannot locate symbol ‘sigemptyset‘
.
After searching I found that the problem is that I build the app using ndk-r11 which build for android-5 but I am running the app on android 4.4 where sigemptyset
definition has changed. so I added the following to Android.mk:
TARGET_PLATFORM := android-19
but I still get the same error
Does anyone know how to fix this?
EDIT:
This question is not a duplicate of another question nor the answer there suggests changing the APP_PLATFORM
parameter in Application.mk