compile android for x86_64 - ccache: FATAL: Could not find compiler "arm-eabi-gcc" in PATH

error:

--------------------------------------------------------------------
ccache: FATAL: Could not find compiler "arm-eabi-gcc" in PATH
--------------------------------------------------------------------


solution:


[root@localhost cm-13-kiwi]# echo $ANDROID_TOOLCHAIN
/opt/android-x86/cm-13-kiwi/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin
[root@localhost cm-13-kiwi]# ls
x86_64-linux-android-gcc
--------------------------------------------------------------------
[root@localhost cm-13-kiwi]# vim build/core/tasks/kernel.mk
--------------------------------------------------------------------
#KERNEL_TOOLCHAIN_PREFIX ?= arm-eabi-                // alter the line
KERNEL_TOOLCHAIN_PREFIX ?= x86_64-linux-android-
--------------------------------------------------------------------


posted @ 2016-10-24 08:36  张同光  阅读(454)  评论(0编辑  收藏  举报