简体   繁体   English

使用Visual Studio 2013 pro update 3(或4)在Windows 8.1上构建铬。

[英]Building chromium on windows 8.1 using Visual Studio 2013 pro update 3 (or 4).

I have been struggling for 2 weeks now to build chromium following Build Instructions (windows) . 我一直在努力工作2周,按照Build Instructions(windows)建立铬。 My specs are: 我的规格是:

  • Windows 8.1 Windows 8.1
  • Visual Studio 2013 update 3 Visual Studio 2013更新3
  • Intel i7 cpu and 16GB RAM Intel i7 cpu和16GB RAM

Every time the build failed. 每次构建失败。 I tried many ways, after installing depot_tools after default way failed. 在默认方式失败后安装depot_tools后,我尝试了很多方法。

  • set DEPOT_TOOLS_WIN_TOOLCHAIN=0 设置DEPOT_TOOLS_WIN_TOOLCHAIN = 0
  • set GYP_MSVS_VERSION=2013 设置GYP_MSVS_VERSION = 2013
  • set GYP_GENERATORS=msvs-ninja,ninja 设置GYP_GENERATORS = msvs-ninja,ninja
  • gclient runhooks gclient runhooks
  • ninja -C out\\Debug chrome ninja -C out \\ Debug chrome

One of the error is like: src\\gin\\function_template.h(152) : error C2059: syntax error : '' 其中一个错误是:src \\ gin \\ function_template.h(152):错误C2059:语法错误:''

So, I have following questions: 1) Has anyone successfully build chromium on windows 8.1 using visual studio 13 pro update 3? 所以,我有以下问题:1)有没有人使用visual studio 13 pro update 3在Windows 8.1上成功构建铬? 1.1) If yes, can you give the detailed instructions on installation sequence to follow if it matters, like (1. visual studio, 2. directx sdk, 3. windows sdk etc. 4. depot_tools 5. fetch chromium 6. gclient sync .... etc)? 1.1)如果是,如果重要的话,你能否详细说明安装顺序,如(1。visual studio,2。directx sdk,3。windows sdk等4. depot_tools 5.取铬6. gclient同步。 ......等)?

1.2) If yes, how can you eliminate those errors like c2059? 1.2)如果是,你怎么能消除像c2059这样的错误?

It says on the website that only Visual Studio Update 4 is supported. 它在网站上说只支持Visual Studio Update 4。

http://www.chromium.org/developers/how-tos/build-instructions-windows http://www.chromium.org/developers/how-tos/build-instructions-windows

Worked for me. 为我工作。

According to http://www.chromium.org/developers/how-tos/build-instructions-windows Chromium is only built on VS 2013 update 4. So it definitely will not work on VS 2013 Update 3. 根据http://www.chromium.org/developers/how-tos/build-instructions-windows,Chromium仅基于VS 2013更新4.因此它绝对不适用于VS 2013 Update 3。

Does it work with VS Update 5? 它适用于VS Update 5吗? => Answer myself: Yes, it works on VS Update 5. =>自己回答:是的,它适用于VS Update 5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM