以下教程位于 https://wiki.php.net/internals/windows/stepbystepbuild 。在 PHP 7 中执行此操作,我一直到 nmake 命令。
当我运行 nmake 时,出现以下错误
"" -h win32\ -r C:\php-sdk\phpdev\vc14\x86\php-src\Release_TS\ -x C:\php
-sdk\phpdev\vc14\x86\php-src\Release_TS\ win32\build\wsyslog.mc
'-h' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '"' : return code '0x1'
Release_TS 文件夹有一个 win32 文件夹,但它是空的。来源应该有东西在里面吗?
最佳答案
必须使用特定的命令提示符
Visual Studio 2015-> VS2015 x64 x86 交叉工具命令提示符。 你必须为你正在构建的 php (x86/x64) 和你正在构建的 (x86/x64) 找到正确的组合。
关于PHP 源在 Windows 上构建 : Files: no such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41900528/