window 下編譯cef 核心 加入mp3/mp4 支援

來源:互聯網
上載者:User

標籤:master   set   style   tools   mp4   dir   變數   命令   路徑   

下載 depot_tools 解壓,加入到環境變數

進入cmd(管理員)運行 gclient 擷取 python和git,svn,設定python環境變數

建立新檔案夾

mkdir chromium && cd chromium

把 automate-git.py 儲存到檔案夾根目錄

然後運行命令:

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路徑 --branch=2623 --no-debug-build --force-build --no-update

* GYP_MSVS_VERSION是vs 的版本 2013/2015

* 如果是擷取主分支可以去掉 --branch參數

 

可以用set GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome 這種方式設定支援MP3、MP4也可以用修改檔案的方法:

開啟e:\ws\source\chromium\src\cef\cef.gypi,variables節下添加如下即可支援mp3。

‘proprietary_codecs‘: 1,‘ffmpeg_branding‘: ‘Chrome‘,

問題:

1.屏蔽編譯時間的警告,編譯的時候出現警告會暫停編譯

在src\build\common.gypi檔案中:(不存在的加入進去)

msvs_disabled_warnings‘: 

          4091,4127,4351,4355,4503,4589,4611,4100,4121,4244, 4505,4510,4512,4610, 4838, 4995, 4996,          4334,4819,4396, 4125,4130,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 of ty

pe ‘overloaded-function‘ (or there is no acceptable conversion)
解決:gl_bindings_skia_in_process.cc和 gl_bindings_skia_in_process.hh已經無作用程式碼了。

ui/gl/BUILD.gn和gl.gyp去除這兩個引用詳見https://codereview.chromium.org/1673323002

3.egl文法/類型錯誤

#解決egl語法錯誤
#修改h:\ws\source\chromium\src\third_party\swiftshader\include\egl\eglext.h
#在62行後加入
typedef EGLAttribKHR EGLAttrib; 

參考連結:

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

window 下編譯cef 核心 加入mp3/mp4 支援

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.