我尝试为 Android 构建 nanomsg
~/work/android-ndk-r10e/ndk-build
我有错误:
In file included from /home/roman/work/Nano/app/jni/src/utils/efd.c:28:0:
/home/roman/work/Nano/app/jni/src/utils/efd_eventfd.inc:27:25: fatal error: sys/eventfd.h: No such file or directory
#include <sys/eventfd.h>
^
compilation terminated.
make: *** [/home/roman/work/Nano/app/obj/local/armeabi/objs/nano/src/utils/efd.o] Error 1
但我看到仿生包含这个文件(见这里)。
我不明白出了什么问题!我使用这个Android.mk:https://gist.github.com/kristianlm/27d12ca7e4b2ef8e89fc
有人可以帮我吗?谢谢!