大厦PhantomJS-2从Windows源 [英] Building PhantomJS-2 from source on Windows
问题描述
我试图基于这些的说明。
不过,我得到以下错误
'的mingw32-制作'不被识别为一个内部或外部命令,可操作的程序或批处理文件。
'NMAKE'不是内部或外部命令,可操作的程序或批处理文件。
错误:qmake.exe缺失无法进行。
我不能确定如何解决此问题,请谁能帮和/或就如何构建这个Windows x64上的步骤?
我迄今所做的....
- 已安装的Perl,Python和Ruby,和Git确保所有在PATH环境变量
- 安装的QT-开源窗口EXE
-
在Visual Studio命令提示符输入以下命令:
- 混帐混帐克隆://github.com/ariya/phantomjs.git
- CD phantomjs
- CD的src / QT
- git的克隆 https://github.com/Vitallium/phantomjs-3rdparty-win
- 重新命名phantomjs-的3rdParty共赢的3rdParty
- CD ../../
- build.cmd
和试图建立的最后一步给出了错误。
我也装的mingw32-化妆3.80.0-3.exe并添加路径C:\\ MinGW的\\ BIN \\的mingw32-的make.exe到PATH环境变量仍然给出了错误
全部命令提示符下输入/输出如下:
*********
微软的Windows [版本6.3.9600]
(C)2013 Microsoft公司。版权所有。C:\\用户\\ o \\文档\\ GitHub的>混帐混帐克隆://github.com/ariya/phantomjs.git
克隆成phantomjs......
遥控器:计数对象:56882,完成。
遥控器:总56882(增量0),再用0(0增量)
接收对象:100%(56882分之56882),113.63 MIB | 1.59 MIB /秒,完成。
解决增量:100%(二万九千九百三十九分之二万九千九百三十九)完成。
检查连接......完成。
检查出的文件:100%(二万五千零一十五分之二万五千零十五)完成。C:\\用户\\ o \\文档\\ GitHub的> CD phantomjsC:\\用户\\ o \\文档\\ GitHub的\\ phantomjs> CD的src / QTC:\\用户\\ o \\文档\\ GitHub的\\ phantomjs的\\ src \\ QT>混帐克隆https://github.com/Vitall
IUM / phantomjs-的3rdParty双赢
克隆成phantomjs-的3rdParty双赢...
遥控器:计数对象:1073,完成。
遥控器:总1073(增量0),再用0(0增量)
接收对象:100%(一千〇七十三分之一千〇七十三),77.26 MIB | 1.67 MIB /秒,完成。
解决增量:100%(三百七十六分之三百七十六)完成。
检查连接......完成。C:\\用户\\ o \\文档\\ GitHub的\\ phantomjs的\\ src \\ QT>重命名phantomjs-的3rdParty双赢的3rdPartyC:\\用户\\ o \\文档\\ GitHub的\\ phantomjs的\\ src \\ QT>C:\\用户\\ o \\文档\\ GitHub的\\ phantomjs的\\ src \\ QT> CD ../../C:\\用户\\ o \\文档\\ GitHub的\\ phantomjs> build.cmd构建类型:发布GIT找到。获取第三方库。
LIB:C:\\用户\\ o \\文档\\ GitHub的\\ phantomjs的\\ src \\ QT \\的3rdParty \\ OpenSSL的\\ lib中; C:\\用户\\
Ø\\文档\\ GitHub的\\ phantomjs的\\ src \\ QT \\的3rdParty \\ libicu \\ lib中; C:\\用户\\ o \\文档\\的Git
轮毂\\ phantomjs的\\ src \\ QT \\的3rdParty \\ libxml的\\ lib中;
包括:C:\\用户\\ o \\文档\\ GitHub的\\ phantomjs的\\ src \\ QT \\的3rdParty \\ OpenSSL的\\包括:Ç
:\\用户\\ o \\文档\\ GitHub的\\ phantomjs的\\ src \\ QT \\的3rdParty \\ libicu \\包括:C:\\用户\\ o \\ D
议付适用银行\\ GitHub的\\ phantomjs的\\ src \\ QT \\的3rdParty \\ libxml的\\包括\\ libxml2的;
'的mingw32-化妆'不是内部或外部命令,
可运行的程序或批处理文件。
'NMAKE'不被识别为内部或外部的命令,
可运行的程序或批处理文件。
错误:qmake.exe缺失无法进行。联系vitaliy.slobodin@gmail.comC:\\用户\\ o \\文档\\ GitHub的\\ phantomjs>*************************************
请确保该路径传递到qmake&安培;在您%PATH%NMAKE是正确的
对我来说,它是:
路径传递到qmake - C:\\ Qt的\\ Qt5.3.2 \\ 5.3 \\ msvc2013_64 \\ BIN
路径执行nmake - C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ VC \\ BIN
可能同样为'的mingw32-化妆
我仔细检查过上Phantomjs源$ C $ C,似乎你不需要下载和安装QT,它已经是源$ C $ C的一部分。
要建立PhantomJS 2,您需要:
- 设置路径下列文件NMAKE.EXE,RC.EXE和mt.exe - C:\\ Program Files文件(x86)的\\微软的SDK \\ WINDOWS \\ v7.1A \\ BIN; C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ VC \\ BIN
- ENV变量:
- 包括:VC&放大器; Windows SDK中包含文件夹 - C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ VC \\包括:C:\\ Program Files文件(x86)的\\微软的SDK \\ WINDOWS \\ v7.1A \\包含
- LIB:VC&放大器; Windows SDK的Lib文件 - C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ VC \\ lib中; C:\\ Program Files文件(x86)的\\微软的SDK \\ WINDOWS \\ v7.1A \\ lib中
也开始建立你需要用正确的配置运行vcvarsall.bat之前,在我来说,我用amd64_x86参数
要运行构建我做以下步骤:
- 混帐混帐克隆://github.com/ariya/phantomjs.git
- CD phantomjs
- 构建
I'm attempting to build the development version of PhantomJS 2 from source on Windows 8.1 x64 based on these instructions.
However I get the following errors
'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."
I'm unsure how to fix this, please can someone help and/or give steps on how to build this on Windows x64?
What I have done so far....
- Installed Perl, Python, Ruby, and Git ensured all are in PATH environment variable
- Installed qt-opensource-windows exe
In Visual Studio Command Prompt have entered the following commands:
- git clone git://github.com/ariya/phantomjs.git
- cd phantomjs
- cd src/qt
- git clone https://github.com/Vitallium/phantomjs-3rdparty-win
- rename phantomjs-3rdparty-win 3rdparty
- cd ../../
- build.cmd
And the last step attempting to build gives the errors.
I also installed mingw32-make-3.80.0-3.exe and added the path C:\mingw\bin\mingw32-make.exe to the PATH environment variable which still gives the error.
Full command prompt input/output is as follows:
*************************************
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>
*************************************
Make sure that path to qmake & nmake are correct in you %PATH% For me it was:
Path to qmake - C:\Qt\Qt5.3.2\5.3\msvc2013_64\bin
Path to nmake - C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
Possible the same for 'mingw32-make'
I've double checked on Phantomjs source code and it seems that you don't need to download and install qt, it is already part of the source code. To build PhantomJS 2 you need:
- Set path to following files nmake.exe, rc.exe and to mt.exe - C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
- ENV Variables:
- INCLUDE: VC & Windows SDK include folder - C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include
- LIB: VC & Windows SDK Lib folder - C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\lib
Also before start build you need to run vcvarsall.bat with correct configuration, In my case I used amd64_x86 parameter To run build I made following steps: - git clone git://github.com/ariya/phantomjs.git - cd phantomjs - build
这篇关于大厦PhantomJS-2从Windows源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!