﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-iwindows-随笔分类-Linux</title><link>http://www.cppblog.com/iwindows/category/21370.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 17 Sep 2018 10:45:28 GMT</lastBuildDate><pubDate>Mon, 17 Sep 2018 10:45:28 GMT</pubDate><ttl>60</ttl><item><title>Ubuntu 编译 CEF</title><link>http://www.cppblog.com/iwindows/archive/2018/09/12/215919.html</link><dc:creator>vic.MINg</dc:creator><author>vic.MINg</author><pubDate>Wed, 12 Sep 2018 03:57:00 GMT</pubDate><guid>http://www.cppblog.com/iwindows/archive/2018/09/12/215919.html</guid><wfw:comment>http://www.cppblog.com/iwindows/comments/215919.html</wfw:comment><comments>http://www.cppblog.com/iwindows/archive/2018/09/12/215919.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/iwindows/comments/commentRss/215919.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/iwindows/services/trackbacks/215919.html</trackback:ping><description><![CDATA[<div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">系统 必须  Ubuntu 16 64位的。</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">1、Ubuntu 使用 shadowsocks  Flip the wall</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;安装：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">在终端下执行命令安装：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->apt-<span style="color: #0000FF; ">get</span>&nbsp;install&nbsp;python-pip<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pip&nbsp;install&nbsp;shadowsocks</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;配置：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">创建 /etc/shadowsocks.json 文件， 内容如下</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"server":&nbsp;"XXX.XXX.XXX.XXX",<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"server_port":&nbsp;XXXX,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"local_address":"127.0.0.1",<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"local_port":1080,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"password":&nbsp;"XXXXXX",<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"method":&nbsp;"rc4-md5",<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"timeout":300,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fast_open":<span style="color: #0000FF; ">false</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;启动ss客户端：<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sslocal&nbsp;-c&nbsp;/etc/shadowsocks.json</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;http代理：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">终端安装Polipo</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;sudo&nbsp;apt-<span style="color: #0000FF; ">get</span>&nbsp;install&nbsp;polipo</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">修改配置文件/etc/polipo/config，内容如下</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#&nbsp;This&nbsp;file&nbsp;only&nbsp;needs&nbsp;to&nbsp;list&nbsp;configuration&nbsp;variables&nbsp;that&nbsp;deviate<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;from&nbsp;the&nbsp;<span style="color: #0000FF; ">default</span>&nbsp;values.&nbsp;&nbsp;See&nbsp;/usr/share/doc/polipo/examples/config.sample<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;and&nbsp;"polipo&nbsp;-v"&nbsp;<span style="color: #0000FF; ">for</span>&nbsp;variables&nbsp;you&nbsp;can&nbsp;tweak&nbsp;and&nbsp;further&nbsp;information.<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logSyslog&nbsp;=&nbsp;<span style="color: #0000FF; ">true</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logFile&nbsp;=&nbsp;/var/log/polipo/polipo.log<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socksParentProxy&nbsp;=&nbsp;"127.0.0.1:1080"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socksProxyType&nbsp;=&nbsp;socks5<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chunkHighMark&nbsp;=&nbsp;50331648<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objectHighMark&nbsp;=&nbsp;16384<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serverMaxSlots&nbsp;=&nbsp;64<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serverSlots&nbsp;=&nbsp;16<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serverSlots1&nbsp;=&nbsp;32<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxyAddress&nbsp;=&nbsp;"0.0.0.0"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxyPort&nbsp;=&nbsp;8123</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">开启新终端，重启Polipo</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;/etc/init.d/polipo&nbsp;restart</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;浏览器设置（可选）：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">Firefox中，首选项&#8212;常规&#8212;网络代理 中设置：</div><div yne-bulb-block="image" style="float: none;"><img alt="" data-media-type="image" src="C:/Users/Administrator/AppData/Local/YNote/data/cool.worm@163.com/120e9323cd35489a8161f038c05f59ad/clipboard.png" style="width: 485px;" data-attr-org-src-id="D27ED4EDD89F471DB3417533ACA03257" /></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><img src="http://www.cppblog.com/images/cppblog_com/iwindows/clipboard1.png" width="838" height="632" alt="" /></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;创建脚步：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">方便使用，创建 shadow.sh 脚步</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;#！/bin/bash<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#shadow.sh<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sslocal&nbsp;-c&nbsp;/etc/shadowsocks.json</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">每次 Flip the wall 时候，在新终端中启动，shadow.sh 即可。</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">2、编译 CEF</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;设置终端 Flip the wall：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">这里 打开一个终端 实行 shadow.sh</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">打开另一个终端（以后操作都在该终端完成），实行：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;export&nbsp;http_proxy=http:<span style="color: #008000; ">//</span><span style="color: #008000; ">127.0.0.1:8123</span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;export&nbsp;https_proxy=http:<span style="color: #008000; ">//</span><span style="color: #008000; ">127.0.0.1:8123</span></div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;创建目录：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">这里cef代码目录 为 /home/system/cef 中</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">在cef目录中创建文件夹：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;mkdir&nbsp;~/cef/automate<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mkdir&nbsp;~/cef/chromium_git</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;下载运行脚步：install-build-deps.sh </div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;cd&nbsp;~/cef<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sudo&nbsp;apt-<span style="color: #0000FF; ">get</span>&nbsp;install&nbsp;curl<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;curl&nbsp;'https://chromium.googlesource.com/chromium/src/+/master/build/install-build-deps.sh?format=TEXT'&nbsp;|&nbsp;base64&nbsp;-d&nbsp;&gt;&nbsp;install-build-deps.sh<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chmod&nbsp;755&nbsp;install-build-deps.sh<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sudo&nbsp;./install-build-deps.sh</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;安装 libgtkglext1-dev：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;sudo&nbsp;apt-<span style="color: #0000FF; ">get</span>&nbsp;install&nbsp;libgtkglext1-dev</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;"> &nbsp;&nbsp;&nbsp;下载安装 depot_tools：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">使用git 下载 depot_tools</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;cd&nbsp;~/cef<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;git&nbsp;clone&nbsp;https:<span style="color: #008000; ">//</span><span style="color: #008000; ">chromium.googlesource.com/chromium/tools/depot_tools.git</span></div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">设置 depot_tools 环境变量：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;export&nbsp;PATH=/home/system/cef/depot_tools:$PATH</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;下载cef代码：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">下载 automate-git.py ，使用 automate-git.py 来中git中下载的cef</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;cd&nbsp;~/cef/automate<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wget&nbsp;https:<span style="color: #008000; ">//</span><span style="color: #008000; ">bitbucket.org/chromiumembedded/cef/raw/master/tools/automate/automate-git.py</span></div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">创建 ~/cef/chromium_git/update.sh</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;#!/bin/bash<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;python&nbsp;../automate/automate-git.py&nbsp;--download-dir=/home/system/cef/chromium_git&nbsp;--depot-tools-dir=/home/system/cef/depot_tools&nbsp;--no-distrib&nbsp;--no-build</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">终端执行刚刚创建的update.sh，下载cef代码</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;cd&nbsp;~/cef/chromium_git<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chmod&nbsp;755&nbsp;update.sh<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./update.sh</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">下载漫长... 这里有从git上下载的 depot_tools工具 和 cef 代码 。可以直接拷贝过来就用，不过别忘了设置depot_tools的环境变量。 </div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;获取第三方库代码：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;cd&nbsp;~/cef/chromium_git/chromium/src<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gclient&nbsp;sync</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;创建 Ninja 工程文件</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;">创建 ~/cef/chromium_git/chromium/src/cef/create.sh 文件，文件内容</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;#!/bin/bash<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./cef_create_projects.sh</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;执行该脚步</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;cd&nbsp;~/cef/chromium_git/chromium/src/cef<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chmod&nbsp;755&nbsp;create.sh<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./create.sh</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;创建沙箱：</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->&nbsp;&nbsp;&nbsp;cd&nbsp;~/cef/chromium_git/chromium/src<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;export&nbsp;CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sudo&nbsp;BUILDTYPE=Debug_GN_x64&nbsp;./build/update-linux-sandbox.sh</div></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.75;">&nbsp;&nbsp;&nbsp;Ninja 编译 cef/chromium</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->cd&nbsp;~/cef/chromium_git/chromium/src<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ninja&nbsp;-C&nbsp;<span style="color: #0000FF; ">out</span>/Debug_GN_x64&nbsp;cef&nbsp;chrome_sandbox</div></div><div yne-bulb-block="image" style="float: none;"><img alt="" data-media-type="image" src="C:/Users/Administrator/AppData/Local/YNote/data/cool.worm@163.com/21113cdcba5d4bc5a27cf0cc90b5f003/clipboard.png" style="width: 620px;" data-attr-org-src-id="68E1EA5C154E441AB4B6125E9C042977" /></div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; text-indent: 28px; line-height: 1.75;"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.cppblog.com/images/cppblog_com/iwindows/clipboard2.png" width="736" height="434" alt="" /></div><img src ="http://www.cppblog.com/iwindows/aggbug/215919.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/iwindows/" target="_blank">vic.MINg</a> 2018-09-12 11:57 <a href="http://www.cppblog.com/iwindows/archive/2018/09/12/215919.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>