编译chromium时遇到很多坑,特此记录。
编译日期:2020.12.25
系统需求
贴一段官网上的系统需求
- A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly recommended.
- At least 100GB of free disk space on an NTFS-formatted hard drive. FAT32 will not work, as some of the Git packfiles are larger than 4GB.
- An appropriate version of Visual Studio, as described below.
- Windows 10 or newer.
1. 安装depot_tools
depot_tools用来下载chromium代码:
- 下载depot_tools;
- 解压到路径depot_tools;
- 将depot_tools的解压路径加到环境变量Path, depot_tools自带了Git和Python,如果自己安装了Git和Python,需要保证depot_tools在Path中的顺序在其之前;
- 在CMD中执行