错误:“__NDK_FPABI__”未命名类型。版本2 [英] ERROR: '__NDK_FPABI__' does not name a type. Version 2
问题描述
我遇到的问题完全相同错误:'__NDK_FPABI__'不命名类型,但我不明白答案或我做错了;我需要更多详细信息。
这是我的环境:
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:
- 尝试按顺序编译一个.so(thridparty)在我的Android应用程序中使用它。
- 主机操作系统:Ubuntu 12.10 x86
- Android NDK版本r9d(不在项目/ jni中)
我所做的是:
- 打开lib.so的Makefile - >将/ usr / include的路径更改为$ NDK_HOME / platform / android-9 / arch-arm / usr / include(在上面的链接中,我不明白Android makefile的含义)
- 添加LOCAL_CFLAGS + = -save-temps
在此独立lib中的Android makefile的含义以及在哪里搜索(和查看什么)* .i * .ii * .s文件
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
任何帮助?谢谢
P.D:我想在相关主题发表评论,但我没有足够的声誉。抱歉
P.D: I would like to comment in related topic but I don't have enough reputation. Sorry
推荐答案
我已解决链接头文件(sys / cdefs.h)从 $ NDK_HOME / platform / android-9 / arch-arm / usr / include / sys
到 $ NDK_HOME / platform / android-9 / arch-arm / usr / include
,并将启动错误的源文件从 #include< sys / cdefs.h>
更改为 #include< cdefs.h>
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.
这篇关于错误:“__NDK_FPABI__”未命名类型。版本2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!