Libcef源码下载与编译

本文详细介绍了在Windows 10系统下,使用VS2017和Windows 10.0.15063.0 SDK编译Libcef的步骤,包括环境要求、源码下载、编译过程以及遇到问题的解决方案。通过自动化脚本下载源码,并使用Ninja编译整个项目。文章还列举了在编译过程中可能遇到的错误和相应的解决方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Libcef源码下载与编译

一. 环境要求(windows下)

  • Windows 7 or newer, 64-bit OS.
  • Visual Studio VS2017 15.3.2+ installed in the default location.
  • Windows 10.0.15063.468 SDK installed in the default location. You must install this exact SDK version to avoid build issues.
  • At least 8GB of RAM and 40GB of free disk space.
  • Approximately 2 hours with a fast internet connection (25Mbps) and fast build machine (2.6Ghz+, 4+ logical cores).
Branch Date Release Branch Chromium Version Windows Build Requirements
Oct 2017 3239 63 Win 7+, VS2017 15.3.2+, Win10.0.15063.468 SDK, Ninja
Sep 2017 3202 62 Win 7+, VS2015u3, Win10.0.14393 SDK,Ninja

我编译用的是主线版本(公司电脑win7安装VS2017无法安装成功) Windows10 + VS2017 15.4 + Windows 10.0.15063.0 SDK + 8g RAM + 120G 空余磁盘, 结果是磁盘剩余24g
注意事项: VS和Win10 SDK最好安装在默认位置, 否则需要修改编译的一些参数

二. 下载和编译

  • . 建立相应目录
    d:\code\automate
    d:\code\chromium_git
    d:\code\depot_tools
  • 下载需要用的工具 depot_tools.zip (解压到depot_tools)
  • 下载 automate-git.py 到automate目录
  • 更新 depot_tools, 将下载 Python, Git
    cd d:\code\depot
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值