mac编译chromium

mac用起来是真的流畅,触摸板的精确度比以前的电脑高了几十倍…

hexo 三条命令基本都是秒完成

pd里开虚拟机,win10启动2秒,ubuntu1秒,同时开2个win10都不卡….不过有时候windows抽风会让风扇转起来…

git代理和终端代理的问题

1
2
3
4
5
export http_proxy=http://127.0.0.1:1087  
export https_proxy=http://127.0.0.1:1087

git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
git config --global https.https://github.com.proxy socks5://127.0.0.1:1086

终端环境变量翻墙

后面gclient sync的时候会说不支持http代理什么的,我是在depot_tools/目录下新建了一个http_proxy.boto,然后export NO_AUTH_BOTO_CONFIG=~/depot_tools/http_proxy.boto

1
2
3
[BOTO]
proxy = 127.0.0.1
proxy = 1087

哪个**说要unset http_proxy; unset https_proxy的

还有就是终端只需要一个depot_tools目录的环境变量….现在知道了…都是暂时的

export PATH="$PATH:/Users/vct/depot_tools"

用mac编译的第一天再次以失败告终

../../third_party/blink/renderer/platform/shared_buffer.h:38:10: fatal error: 'third_party/blink/renderer/platform/wtf/std_lib_extras.h' file not found

第二次编译

1
../../third_party/blink/renderer/platform/blob/blob_data.h:43:10: fatal error: 'third_party/blink/renderer/platform/wtf/threading_primitives.h' file not found

反正我现在也只会

1
2
gclient sync
gclient runhooks

然后搞了半天,又出现了第一天的错误std_lib_extras……

我tm…

调完boto后,又报了个新的错

1
2
../../third_party/blink/renderer/platform/graphics/image.h:39:10: fatal error: 'third_party/blink/renderer/platform/graphics/paint/paint_image.h' file not found
#include "third_party/blink/renderer/platform/graphics/paint/paint_image.h"

我疯了。。。

我重新fetch好了吧。。。

1
fatal error: cannot open file '/Users/vct/chromium/src/out/Default/../../third_party/llvm-build/Release+Asserts/lib/clang/8.0.0/include/limits.h': Too many open files

忍不住满口脏话…

我不编译了行了吧…

浪费2天,官网就不能维护一下工具吗!!!

rm -rf chromium/