背景:
在cef上进行二次开发,发现默认不只支持h264解码。需要重新编译chromium解决。
步骤:
https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md#markdown-header-linux-setup 为官方编译指导。主要步骤已经十分详细。下面红字部分补充一些实际编译遇到的问题。
前提:
需要fq
需要fq
需要fq!!
需要好用的vpn,或者ssr 加 proxifier 实现全局代理。具体教程网上很多。
Linux Setup
What's Required
- Ubuntu 16.04 LTS 64-bit is recommended. Building with other versions or distros has not been tested and may experience issues.
- At least 6GB of RAM and 40GB of free disk space.(内存实在不够,可以用swap凑,4g还是起码要的,否则极度影响编译速度。 硬盘空间最好60g以上,40g可能不够)
- Approximately 2 hours with a fast internet connection (25Mbps) and fast build machine (2.6Ghz+, 4+ logical cores).(虚拟机,单核也没问题,就是耗时巨长。。)
Step-by-step Guide
In this example "~" is "/home/marshall". Note that in some cases the absolute path must be used. Environment variables described in this section can be added to your "~/.profile" or "~/.bashrc" file to persist them across sessions.