【问题标题】:Compiling PhantomJS in Windows (build yourself)在 Windows 中编译 PhantomJS(自己构建)
【发布时间】:2016-07-30 00:08:31
【问题描述】:

来自website of PhantomJS itself。作者说:

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”?是否有任何强制性(a 必须)安装这两个工具?或者如果我只安装了一个 VS2013,就够了吗?
  2. 下一点是,它是这样写的“你必须有 Perl、Python、Ruby 和 GIT。”但是这些工具的最低要求版本是什么 还是?

注意:我想在我的 Windows 7x64 下编译和构建它。

【问题讨论】:

  • 那么使用能够构建 PhantomJS 吗?如果是,如何? (你再也没有回到这个问题)
  • 已经解决了。看看底部的答案@Vaviloff

标签: windows build compilation phantomjs


【解决方案1】:

MSVC2013 就够了。 当前版本的 Perl、Python、Ruby 和 GIT 都可以。 上次我在 2016 年冬季在 Windows 7 x64 上成功构建了它

  • ActiveState Perl v5.20.2
  • Python 2.7.5
  • 红宝石 1.9.3p545
  • git 版本 1.9.4.msysgit.1

【讨论】:

    猜你喜欢
    • 2016-10-26
    • 1970-01-01
    • 1970-01-01
    • 2015-03-02
    • 2011-02-07
    • 2016-03-14
    • 2012-10-01
    • 2020-04-23
    • 2020-03-13
    相关资源
    最近更新 更多