ERROR: '__NDK_FPABI__' does not name a type. Version 2

早过忘川 提交于 2019-12-25 03:26:56

问题


I have exactly the same problem described here ERROR: '__NDK_FPABI__' does not name a type but I don't understand the answer or I am doing it wrong; I need more details.
This is my enviroment:

  • Trying to compile a .so (thridparty) in order to use it in my Android app. This is a standalone lib, not in any Android project (not in project/jni)
  • Host OS: Ubuntu 12.10 x86
  • Android NDK version r9d

What I have done is:

  • Open lib.so's Makefile -> change paths to /usr/include to $NDK_HOME/platform/android-9/arch-arm/usr/include (in previous link, I don't understand the meaning of "Android makefile")
  • Add LOCAL_CFLAGS += -save-temps

So, I don't understand the meaning of "Android makefile" in this standalone lib and where to search (and what to look) the *.i *.ii *.s files

Any help? Thank you

P.D: I would like to comment in related topic but I don't have enough reputation. Sorry


回答1:


I have solved the problem linking header file (sys/cdefs.h) from $NDK_HOME/platform/android-9/arch-arm/usr/include/sys to $NDK_HOME/platform/android-9/arch-arm/usr/include
and changing the source file that launches the error from #include <sys/cdefs.h> to #include <cdefs.h>

Sure there must be better solution, but this was enough for me.



来源:https://stackoverflow.com/questions/23339489/error-ndk-fpabi-does-not-name-a-type-version-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!