【发布时间】:2015-03-02 08:56:33
【问题描述】:
我正在尝试基于这些instructions 在 Windows 8.1 x64 上从源代码构建 PhantomJS 2 的开发版本。
但是我得到以下错误
'mingw32-make' is not recognized as an internal or external command, operable program or batch file.
'nmake' is not recognized as an internal or external command, operable program or batch file.
Error: "qmake.exe is missing Can't proceed."
我不确定如何解决此问题,请有人提供帮助和/或提供有关如何在 Windows x64 上构建此问题的步骤吗?
到目前为止我做了什么......
- 已安装 Perl、Python、Ruby 和 Git,确保它们都在 PATH 环境变量中
- 已安装 qt-opensource-windows exe
-
在 Visual Studio 命令提示符中输入了以下命令:
- git clone git://github.com/ariya/phantomjs.git
- cd phantomjs
- cd src/qt
- git 克隆https://github.com/Vitallium/phantomjs-3rdparty-win
- 重命名 phantomjs-3rdparty-win 3rdparty
- cd ../../
- build.cmd
尝试构建的最后一步给出了错误。
我还安装了 mingw32-make-3.80.0-3.exe 并将路径 C:\mingw\bin\mingw32-make.exe 添加到仍然给出错误的 PATH 环境变量中。
完整的命令提示符输入/输出如下:
*************************************
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\o\Documents\GitHub>git clone git://github.com/ariya/phantomjs.git
Cloning into 'phantomjs'...
remote: Counting objects: 56882, done.
remote: Total 56882 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (56882/56882), 113.63 MiB | 1.59 MiB/s, done.
Resolving deltas: 100% (29939/29939), done.
Checking connectivity... done.
Checking out files: 100% (25015/25015), done.
C:\Users\o\Documents\GitHub>cd phantomjs
C:\Users\o\Documents\GitHub\phantomjs>cd src/qt
C:\Users\o\Documents\GitHub\phantomjs\src\qt>git clone https://github.com/Vitall
ium/phantomjs-3rdparty-win
Cloning into 'phantomjs-3rdparty-win'...
remote: Counting objects: 1073, done.
remote: Total 1073 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1073/1073), 77.26 MiB | 1.67 MiB/s, done.
Resolving deltas: 100% (376/376), done.
Checking connectivity... done.
C:\Users\o\Documents\GitHub\phantomjs\src\qt>rename phantomjs-3rdparty-win 3rdparty
C:\Users\o\Documents\GitHub\phantomjs\src\qt>
C:\Users\o\Documents\GitHub\phantomjs\src\qt>cd ../../
C:\Users\o\Documents\GitHub\phantomjs>build.cmd
Build type: release
GIT found. Getting 3rd party libraries.
LIB: C:\Users\o\Documents\GitHub\phantomjs\src\qt\3rdparty\openssl\lib;C:\Users\
o\Documents\GitHub\phantomjs\src\qt\3rdparty\libicu\lib;C:\Users\o\Documents\Git
Hub\phantomjs\src\qt\3rdparty\libxml\lib;
INCLUDE: C:\Users\o\Documents\GitHub\phantomjs\src\qt\3rdparty\openssl\include;C
:\Users\o\Documents\GitHub\phantomjs\src\qt\3rdparty\libicu\include;C:\Users\o\D
ocuments\GitHub\phantomjs\src\qt\3rdparty\libxml\include\libxml2;
'mingw32-make' is not recognized as an internal or external command,
operable program or batch file.
'nmake' is not recognized as an internal or external command,
operable program or batch file.
Error: "qmake.exe is missing Can't proceed."
Contact vitaliy.slobodin@gmail.com
C:\Users\o\Documents\GitHub\phantomjs>
*************************************
【问题讨论】:
-
你好@pathDongle,你能分享给我们你刚刚安装的每个必备软件版本的哪个版本吗?例如 Perl、Python、Ruby 和 Git,您使用的是哪个版本? :D
标签: git visual-studio qt build phantomjs