码迷,mamicode.com
首页 > 移动开发 > 详细

ubuntu 16.04tls 编译android 5.1.1报错

时间:2019-08-22 22:05:29      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:const   support   修改   def   pos   mon   http   without   and   

报错:
libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
执行:
cd源码目录
1.
cd  xxx/art/build/
vim Android.common_build.mk    //修改第119行
修改前:
# Host.
ART_HOST_CLANG := false
ifneq ($(WITHOUT_HOST_CLANG),true)
# By default, host builds use clang for better warnings.
ART_HOST_CLANG := true
endif
修改后:
# Host.
ART_HOST_CLANG := false
ifneq ($(WITHOUT_HOST_CLANG),false)
# By default, host builds use clang for better warnings.
ART_HOST_CLANG := true
endif

2.
cp
/usr/bin/ld.gold /home/bruce/aosp/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
3.
make update-api

4.
. buile/envsetup.sh
lunch
make -j12
(cpu核心数*2)

https://blog.csdn.net/u014770862/article/details/52624851

ubuntu 16.04tls 编译android 5.1.1报错

标签:const   support   修改   def   pos   mon   http   without   and   

原文地址:https://www.cnblogs.com/Fightingbirds/p/11396892.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!