HLW0 2017-05-22
最近的工作全是靠近framwork层的东西,说一下当你在Ubuntu下编译Android源码出下以下错误时的解决办法:
build/core/host_shared_library_internal.mk:51: recipe for target ‘out/host/linux-x86/obj/lib/libart.so’ failed 1
解决方法:
clang编辑器的问题,在art/build/Android.common_build.mk 中将host 默认编辑器使用clang关掉,找到WITHOUT_HOST_CLANG
关闭clang:
#Host.
ART_HOST_CLANG := false
ifneq ($(WITHOUT_HOST_CLANG),true)
# By default, host builds use clang for better warnings.
ART_HOST_CLANG := false
endif
实测有用