2016-07-30 74 views
0

website of PhantomJS itself。作者说:在Windows中编译PhantomJS(自己构建)

Windows requirements 

Supported toolchains: MSVC2012 and MSVC2013. 

You must have Perl, Python, Ruby, and Git on PATH. Also, note that Git comes with it’s own version of perl.exe. If you have both Git and a separate perl installation in your PATH, please make sure that you separate Perl install’s bin folder comes before the git’s bin folder in your PATH. 

Please also add the folder <phantomjs_path>\src\qt\3rdparty\gnuwin32\bin to your PATH, as required tools such as bison, flex, and gperf will not be found otherwise. Example: 

SET PATH=%CD%\src\qt\3rdparty\gnuwin32\bin;%PATH% 
Run the build script from Visual Studio Command Prompt. 

Tip: Enabling incremental linking will make the linkage process faster. 

然后,我有几个问题:

  1. 为什么它是写 “支持的工具链MSVC2012 & MSVC2013”,而不是 “选择使用VS2012或VS2013” ?有没有强制要求(必须有 )安装这两个工具?或者如果我只安装了一个VS2013,它够了吗?
  2. 接下来的一点是,它写成“你必须有Perl,Python,Ruby和 GIT。”但是这些工具的最低要求版本 究竟是什么?

注:我想编译&在我的Windows 7x64下编译它。

+0

那么使用能够建立PhantomJS?如果是的话,怎么样? (你从来没有回到这个问题) – Vaviloff

+1

已经解决了。看看底部的答案@Vaviloff – gumuruh

回答

1

MSVC2013就足够了。 当前版本的Perl,Python,Ruby和GIT都可以。 上次我已经成功地与

  • 的ActiveState Perl的v5.20.2
  • 建立它在Windows 7 X64的冬季2016的Python 2.7.5
  • 红宝石1.9.3p545
  • Git版本1.9.4 .msysgit.1
+1

感谢细节@Vaviloff – gumuruh