[英]'nmake' is not recognized as an internal or external command
i want to build c ++ library "botan" according to this instruction: https://botan.randombit.net/handbook/building.html
(for Windows)我想根据此说明构建 c ++ 库“botan”:
https://botan.randombit.net/handbook/building.html
the second command is this: nmake
.第二个命令是这样的:
nmake
。
in the result I get 'nmake' is not recognized as an internal or external command
结果我得到
'nmake' is not recognized as an internal or external command
After i tried to open nmake.exe, ended up getting this result: cl /DBOTAN_DLL=__declspec(dllexport) /EHs /GR /D_WIN32_WINNT=0x0600 /MD /bigobj /O2 /Oi -DBOTAN_IS_BEING_BUILT /W4 /wd4250 /wd4251 /wd4275 /wd4127 /Ibuild\include /Ibuild\include\external /nologo /c C:/botan/botan/Botan-2.17.2/src/lib/asn1/alg_id.cpp /Fobuild\obj\lib\asn1_alg_id.obj
在我尝试打开 nmake.exe 后,最终得到以下结果:
cl /DBOTAN_DLL=__declspec(dllexport) /EHs /GR /D_WIN32_WINNT=0x0600 /MD /bigobj /O2 /Oi -DBOTAN_IS_BEING_BUILT /W4 /wd4250 /wd4251 /wd4275 /wd4127 /Ibuild\include /Ibuild\include\external /nologo /c C:/botan/botan/Botan-2.17.2/src/lib/asn1/alg_id.cpp /Fobuild\obj\lib\asn1_alg_id.obj
'cl' is not recognized as an internal or external command
NMAKE: fatal error U1077: cl: returned code "0x1"
Stop.
Question: how can I connect nmake, or how to build a botan library?问题:如何连接nmake,或者如何建立一个botan库?
The build instructions assume nmake
is somewhere on the PATH.构建说明假设
nmake
位于 PATH 上的某个位置。 If you run a random cmd
shell, this probably won't be the case.如果您运行随机
cmd
shell,则可能不会出现这种情况。 Furthermore, nmake
assumes the other executables will also be on the PATH.此外,
nmake
假定其他可执行文件也将在 PATH 上。
With Visual Studio, there's a Visual Studio Command Prompt.使用 Visual Studio,有一个 Visual Studio 命令提示符。 This is a batch file in the installation folder.
这是安装文件夹中的批处理文件。 Running this will set the PATH to that specific Visual Studio install.
运行此命令会将 PATH 设置为特定的 Visual Studio 安装。 As a result, you can run the
nmake
belonging to that Visual Studio install.因此,您可以运行属于该 Visual Studio 安装的
nmake
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.