2016-02-02 260 views
0

我嘗試建立nanomsg爲Android致命錯誤:SYS/eventfd.h:沒有這樣的文件或目錄

~/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 

但我看到仿生包含此文件(見here)。

我不明白什麼是錯的! 我使用這個Android.mk:https://gist.github.com/kristianlm/27d12ca7e4b2ef8e89fc

任何人都可以幫助我嗎? 謝謝!

回答

1

我加入Application.mk和它的作品:

APP_STL := gnustl_static 
APP_CPPFLAGS:= -std=c++11 -frtti -fexceptions 
NDK_TOOLCHAIN_VERSION=4.8 
APP_PLATFORM := android-10 
APP_ABI := armeabi 
相關問題