当前位置: 代码迷 >> 综合 >> Android源码编译环境配置
  详细解决方案

Android源码编译环境配置

热度:43   发布时间:2024-01-26 02:10:03.0

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及账户

  相关解决方案