chromium编译流程
来源:http://www.tudoupe.com时间:2022-07-16
Windows 10铬编译程序
1 前提
官方文件(最好遵循这个官方文件,因为可能有一些编辑更改,并且以前安装的博客文章都失败了)
https://chromium.googlesource.com/chromium/src/+/main/docs/windows_build_instructions.md
非官方参考文章
https://blog.csdn.net/qq_37116222/article/details/119928050
http://wendal.net/2015/02/04.html
https://aaron-bird.github.io/2019/02/01/%E7%BC%96%E8%AF%91%20Chromium%28Windows%29/
http://wendal.net/2015/02/04.html
有科学的互联网网络,越快越好。
100G硬盘,SSD最好
8G或更多的内存,越大越好
越多x64CPU核心,越好,
Linux/Windows/MAC编译器可以使用
因为只有一台手提电脑才能在互联网上使用科学,服务器也无法做科学,而且大多数人都使用窗口,所以这是一个赢家电脑的教训
系统语言改为英语(正式建议)
Windows Settings->Time & Language ->Language->Perferred languages-> Add a language,单击您希望添加的语言,选择option,然后下载语言包,下载完成后就可以再 Windows display language 下切换语言设置了。
安装Visual Studio,最好在C磁盘上默认
需要安装C++套装
我的配置
24G 内存
第八代i7笔记本低压 CPU
新扩展的123G HD
甚至香港科学网,7M/s网络速度,幸福也来了
我使用VS 2022的社区版本,(建议IDE默认位置安装,( cached other disks)安装桌面C++套件,win10 SDK, C++ MFC,C++ ATL(MFC/ATL不知道是否需要,都装上先)
2 代码下载
下载Depot_tools安装
https://storage.googleapis.com/chrome-infra/depot_tools.zip
在解压缩后添加系统环境变量(必须先配置,特别是如果Python和Git以前安装,而不是GIT和Python以前安装)
如果中断,您将始终执行gclient sync --force
3 遇到的问题,
1
缺少 SDK
F:Windows Kits10
添加WINDOWSSDKDIR环境变量
2
Exception: F:softDirvsideCommon7IDEVCvcvarsall.bat is missing - make sure VC++ tools are installed.
ERROR at //build/toolchain/win/BUILD.gn:494:24: Script returned non-zero exit code.
win_toolchain_data = exec_script(“setup_toolchain.py”,
为什么对14.0丢失vcvarsall.bat?
解决方案:
确保在Visual Studio中安装C++通用工具。
MSVC
重新安装Win10 SDK
编译:
gn gen out/Default
路径:
VS !!路径 C:Program FilesMicrosoft Visual Studio2022Community
SDK路径C:Program Files (x86)Windows Kits10
命令:
ninja -C outDefault chrome -j 8
gn gen out/Default
autoninja -C outDefault chrome
相关新闻
- 2022-08-04 WPF的由来
- 2022-08-04 Win11勒索软件防护怎么打开?Win11安
- 2022-08-04 Windows系统jdk的配置
- 2022-08-04 Windows10 OneNote怎么重新登录?如何重
- 2022-08-04 超好用的 Windows 效率工具推荐
- 2022-08-04 Windows如何在CMD或PowerShell中配置代理
- 2022-08-04 powershell和cmd对比
- 2022-08-04 【QT】Windows下QT下载安装
- 2022-08-04 windows下 C++ 实现类属性的get和set方
- 2022-08-04 Win11快速助手在哪里?Win11打开快速
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
