首页 > 其他 > 详细

andoridNDK 交叉编译链构建(2020年04月26日)

时间:2020-04-26 12:31:04      阅读:130      评论:0      收藏:0      [点我收藏+]

1、下载新版NDK下载

https://developer.android.google.cn/ndk/downloads/index.html

2. 构建步骤:

(1)

cd  xx/android-ndk-xxxx/build/tools

(2)

NDK提供了两个脚步用于一键化构建gcc工具链:
make-standalone-toolchain.sh
make_standalone_toolchain.py
(3)构建命令:
./make_standalone_toolchain.py --arch arm64 --api 24 --unified-headers --install-dir ~/android-build

 

(4)构建参数:

—arch : 交叉编译目标平台
--unified-header: 使用libc头文件,相关解释可参考:
Https://android.googlesource.com/platform/ndk.git/+/ndk-r14-release/docs/UnifiedHearders.md
—api: Android系统版本
--install-dir:生成的交叉编译工具链输出位置,可自行设置
 

 

andoridNDK 交叉编译链构建(2020年04月26日)

原文:https://www.cnblogs.com/liuliu-word/p/12778392.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!