Android(安卓)4.4源码编译环境升级gcc版本的方法
16lz
2021-01-26
原因:android 4.4默认的gcc版本是4.7,c++ 11的部分功能无法使用,需要替换更高版本的gcc。
步骤:
- 下载ndk android-ndk-r11-linux-x86_64.zip (其它更高版本也可以)。
- 解压后将android-ndk-r11-linux-x86_64.zip\android-ndk-r11\sources\cxx-stl\gnu-libstdc++\4.9 目录拷贝到 prebuilts/ndk/11/sources/cxx-stl/gnu-libstdc++ 目录下。
- 修改build/core/combo/TARGET_linux-arm.mk, 将TARGET_GCC_VERSION改为4.9
更多相关文章
- android_1 环境搭建
- Android使用ethtool工具查询/设置以太网网卡状态
- Tensorflow:Android调用Tensorflow Mobile版本API(2)-基于Android的
- 安卓学习第一天
- Android(安卓)8.0系统Bug Only fullscreen opaque activities ca
- Android(安卓)Gradle plugin与Gradle 版本对应问题
- 在mac上交叉编译mono的脚本,mac x64,iphone armv7,iphone armv7s,an
- Android:Failed to allocate memory: 8;This application has requ
- java.lang.UnsupportedClassVersionError: com/android/build/gr