南阳网网站建设,电商平台活动策划方案,凡科网和wordpress,wordpress分类目录插件系统准备
安装系统
准备一台安装Ubuntu系统的机器#xff08;windows系统的机器可以通过WSL安装ubuntu系统#xff09; 安装docker
本文使用docker进行编译#xff0c;因此提前安装docker。参考网络链接安装docker并设置为不使用sudo进行docker操作。
参考链接#xff…系统准备
安装系统
准备一台安装Ubuntu系统的机器windows系统的机器可以通过WSL安装ubuntu系统 安装docker
本文使用docker进行编译因此提前安装docker。参考网络链接安装docker并设置为不使用sudo进行docker操作。
参考链接
Ubuntu22.04安装Docker_Canminem的博客-CSDN博客不使用sudo 执行Docker命令的方法 -博客-DevBox开发工具箱 源码准备 安装依赖软件包
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 libncurses5 openjdk-8-jdk 修改python软链接 1. 移除已有软链接
$ rm -rf /usr/bin/python 2. 增加新的软链接
$ ln -s /usr/bin/python3 /usr/bin/python 下载并配置repo mkdir ~/bin/
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o ~/bin/repo
chmod x ~/bin/repo 添加环境变量 vi ~/.bashrc 将如下内容添加到末尾 source ~/.bashrc
export REPO_URLhttps://mirrors.tuna.tsinghua.edu.cn/git/git-repo
配置git环境
将email和name配置成自己的
git config --global user.email youexample.com
git config --global user.name Your Name
下载源码
mkdir -p ~/work/android-13.0.0_r35
cd ~/work/android-13.0.0_r35
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-13.0.0_r35
repo sync -j32
代码编译
cd ~/work/android-13.0.0_r35
. build/envsetup.sh lunch sdk_car_x86_64-userdebug m -j32