基于android eclipse的JNI 构建-常用命令笔记
2015-07-27 16:01
579 查看
今天又来搭建jni框架了,之前的那几个命令忘了。为了以后使用的需要,现在记录一下;
首先ndk环境ok;
返回上一个目录
编译java文件
生成本地函数头文件
over!!!!
APP_ABI
By default, the NDK build system generates machine code for the armeabi ABI. This machine code corresponds to an ARMv5TE-based CPU with software floating point operations. You can use APP_ABI to select a different ABI. Table 1 shows the APP_ABI settings for different instruction sets.
Table 1. APP_ABI settings for different instruction sets.
Instruction set Value
Hardware FPU instructions on ARMv7 based devices APP_ABI := armeabi-v7a
ARMv8 AArch64 APP_ABI := arm64-v8a
IA-32 APP_ABI := x86
Intel64 APP_ABI := x86_64
MIPS32 APP_ABI := mips
MIPS64 (r6) APP_ABI := mips64
All supported instruction sets APP_ABI := all
Note: all is available starting from NDKr7.
You can also specify multiple values by placing them on the same line, delimited by spaces. For example:
APP_ABI := armeabi armeabi-v7a x86 mips
首先ndk环境ok;
cd 进入src目录下
返回上一个目录
cd ..
编译java文件
生成本地函数头文件
over!!!!
APP_ABI
By default, the NDK build system generates machine code for the armeabi ABI. This machine code corresponds to an ARMv5TE-based CPU with software floating point operations. You can use APP_ABI to select a different ABI. Table 1 shows the APP_ABI settings for different instruction sets.
Table 1. APP_ABI settings for different instruction sets.
Instruction set Value
Hardware FPU instructions on ARMv7 based devices APP_ABI := armeabi-v7a
ARMv8 AArch64 APP_ABI := arm64-v8a
IA-32 APP_ABI := x86
Intel64 APP_ABI := x86_64
MIPS32 APP_ABI := mips
MIPS64 (r6) APP_ABI := mips64
All supported instruction sets APP_ABI := all
Note: all is available starting from NDKr7.
You can also specify multiple values by placing them on the same line, delimited by spaces. For example:
APP_ABI := armeabi armeabi-v7a x86 mips
相关文章推荐
- eclipse 全局搜索
- 【Struts2框架】第五节声明式异常处理-处理异常的过程
- javaWeb-mvc之利用c3p0写入数据库出现乱码
- spring ioc
- java中关于this与super那点事
- 【Struts2框架】第四节Struts标签-通用标签简述与常用标签大例子
- Eclipse中maven项目添加jar包
- JDK版本不兼容问题之:一台机器安装多个版本的JDK
- Spring事务配置
- 直接插入排序算法原理及JAVA实现
- 读Spring的源代码三:ContextLoaderListener和DispatcherServlet的加载过程
- Java基础复习(四)
- eclipse中连接HBase报java.net.ConnectException: Connection refused: no further information
- java IO流解析(四)
- Ubuntu下配置JAVA环境
- java IO流解析(三)
- java IO流解析(二)
- Java基础查漏补缺:final、finally和finalize的区别
- java读取配置文件的几种方法
- Struts2 - Interceptor中取得ActionName、Namespace、Method