Android源码编译环境配置
ubuntu 系统配置
0. Init setup
# Ubuntu Version: ubuntu64-1404
# python 2.6—2.7
# JDK – For the java Development Kit(JDK)
# Android 8.0(o release):
# Ubuntu – OpenJDK 8,
# Mac OS – jdk 8u45 or newer
# 安装git
apt-get install git
# 配置git
git config --global user.name YOUR_USERNAME
git config --global user.email YOUR_EMAIL
git config --global core.editor vim
# 安装编译依赖包
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
# Python module install
# Wand.image
sudo apt-get install libmagickwand-dev -y
sudo apt-get install python-wand -y
# Lz4c
sudo apt-get install liblz4-tool -y
# 安装 pycrypto 模块
sudo python -m pip install pycrypto
# 根据自己需要进行配置 gerrit repo及账户
虚拟机中Ubuntu 18.04 LTS上进行以上配置(python及openJDK使用ubuntu 1804系统默认)后,编译android AOSP可能会报错
ckati failed with: signal: killed ,需要把虚拟机内存调整到大于4G;