Windows compiled CEF kernel join MP3/MP4 support

Source: Internet
Author: User

Download Depot_tools unzip, add to environment variable

Go to cmd (admin) run gclient get Python and git,svn, set python environment variable

Create a new Folder

mkdir Chromium && CD chromium

Save the automate-git.py to the folder root directory

Then run the command:

Set gyp_generators=ninja,msvs-ninjaset gyp_msvs_version=2013 set Gyp_defines=proprietary_codecs=1 Ffmpeg_branding=chrome
Python automate-git.py--download-dir=chromium--depot-tools-dir=depot_tools path--branch=2623 -- No-debug-build--force-build--no-update

* Gyp_msvs_version is the version of VS 2013/2015

* If you are getting the main branch, you can remove the--branch parameter

You can use set Gyp_defines=proprietary_codecs=1 ffmpeg_branding=chrome this way to set support MP3, MP4 can also be used to modify the file method:

To open the E:\ws\source\chromium\src\cef\cef.gypi,variables section, add the following to support MP3.

' Proprietary_codecs ': 1, ' ffmpeg_branding ': ' Chrome ',

Problem:

1. Block compile-time warnings, compile-time warnings will pause compilation

In the Src\build\common.gypi file: (non-existent add-in)

Msvs_disabled_warnings ':

4091,4127,4351,4355,4503,4589,4611,4100,4121,4244, 4505,4510,4512,4610, 4838, 4995, 4996, 4334,4819,4396, 4125,41 30,4131,4189, 4201, 4238,4245,4310,4428, 4481,4530, 4701, 4702,4706, 4067,4800,4251,4702,4456, 4457, 4458, 4459,4312,

],

2.gl_bindings_skia_in_process.cc (684): Error c2679:binary ' = ': no operator found which takes a right-hand operand o F Ty

PE ' overloaded-function ' (or there is no acceptable conversion)
FIX: Gl_bindings_skia_in_process.cc and gl_bindings_skia_in_process.hh are dead code.

UI/GL/BUILD.GN and Gl.gyp Remove these two references see https://codereview.chromium.org/1673323002

3.EGL Syntax/type error

#解决egl语法错误
#修改h: \ws\source\chromium\src\third_party\swiftshader\include\egl\eglext.h
#在62行后加入
typedef EGLATTRIBKHR EGLATTRIB;

Reference Links:

http://blog.csdn.net/ljm198745/article/details/40502599

Https://gist.github.com/apla/f7ca2aeda6f15b41f60d2d1f29be1de0

Https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md

Http://www.cnblogs.com/lonelyonline/p/4404844.html

http://blog.csdn.net/qsy2000/article/details/52845895

Windows compiled CEF kernel join MP3/MP4 support

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.