chrome环境搭建

depot_tools:
     由于中国网络导致下载失败。重新fetch提示错误。问题在于fetch.py的Checkout::exists判定了depot_tools\.gclient, depot_tools\src,depot_tools\.gclient是否存在。如果存在删除了就可以重新开始。
错误提示:uour current directory appears to already contain, or be part of, acheckout. "fectch" is used only to get new checkouts. use "gclient sync" to update existing checkouts.

vs:
在src下面运行bat,然后可以看到生成了src/out目录还有src/chrome/chrome.sln
bat内容是:
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_MSVS_VERSION=2013
set GYP_GENERATORS=msvs-ninja,ninja
set GYP_DEFINES=component=shared_library
set PATH=D:\svnClient\depot_tools\python276_bin\;D:\svnClient\depot_tools\;
python.exe ./build/gyp_chromium.py >>log.txt 2>&1

src/chrome/chrome.sln可以打开阅读代码

编译问题1.
使用vs编译工程chrome,其实就是调用ninja -C out/debug chrome.提示错误
'../../build/util/LASTCHANGE', needed by 'gen/chrome_watcher/chrome_watcher_version.rc', missing and no known rule to make it

     gclinet runhooks生成历史文件

编译问题2.
1>  FAILED: ninja -t msvc -e environment.x86 -- "" /nologo /showIncludes /FC @obj\third_party\pdfium\core\src\fpdfapi\fpdfapi.fpdf_basic_module.obj.rsp /c ..\..\third_party\pdfium\core\src\fpdfapi\fpdf_basic_module.cpp /Foobj\third_party\pdfium\core\src\fpdfapi\fpdfapi.fpdf_basic_module.obj /Fdobj\third_party\pdfium\fpdfapi.cc.pdb
1>  ninja: fatal: CreateProcess: 参数错误。

     解决 :
     out\debug\build.ninja
     cl_x86 = ""
     cl_x64 = ""
     修改
     cl_x86 = "D:\Program Files\vs2013\VC\bin\cl.exe"     // 我填写cl.exe提示我找不到指定文件
     cl_x64 = ""

编译问题3.
     提示文件非unicode存储 warning 4819
       解决:
          控制面板->区域和语言->非Unicode程序的语言 修改成 英语(美国)
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值