Hi I am trying to cross compile code for Android arm64 on Ubuntu 16.04 with gcc-4.9 from android-ndk and cannot get rid of this error:
aarch64-linux-android-gcc -o test.o -c test.c -Os -fPIE -Wall -DDBG
test.c:26:18: fatal error: poll.h: No such file or directory
#include <poll.h>
^
compilation terminated.
Makefile:16: recipe for target 'test.o' failed
make: *** [test.o] Error 1
I think it is because the toolchain cannot be accessed the right way because before I got:
make: aarch64-linux-android-as: Command not found
Please advise.