前提:
按照上一篇博文介绍的配置好android编译环境《ubuntu 下载编译运行android source code--gingerbread》。
以免编译工具缺失造成编译失败。
下载配置编译工具:
可以使用android自带的编译环境,使用方法可以google一下。
本人使用的是第三方编译工具 Code Sourcery ARM EABI Toolchain
https://sourcery.mentor.com/sgpp/lite/arm/portal/subscription3053
IA32 GNU/Linux Installer
IA32 GNU/Linux TAR
二选一即可,我使用的是 2011.03-42 版本,其他版本没有试过。
安装:
安装到 ~即可。配置:
sudo gedit /etc/environment
增加路径到PATH
PATH=/home/yuchengliu/CodeSourcery/Sourcery