Makefile.vc(18):致命错误U1050:无法自动检测工具链体系结构!如果cl.exe在您的PATH中,请使用ARCH =< arch>重新运行nmake.停止 [英] Makefile.vc(18) : fatal error U1050: Unable to auto-detect toolchain architecture! If cl.exe is in your PATH rerun nmake with ARCH=<arch>. Stop
问题描述
我正在尝试使用
I'm trying to build libwebp.dll
for webp, using these instructions (I downloaded this source code)
但是,我得到了错误:
Makefile.vc(18):致命错误U1050:无法自动检测工具链体系结构!如果cl.exe在您的PATH中,请使用ARCH =重新运行nmake.停止.
Makefile.vc(18) : fatal error U1050: Unable to auto-detect toolchain architecture! If cl.exe is in your PATH rerun nmake with ARCH=. Stop.`
在Visual Studio 2017(社区版)的开发人员命令提示符中的命令nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output
上.
on command nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output
in the Developer Command Prompt for Visual Studio 2017 (Community Edition).
在C:\Program Files (x86)\Microsoft Visual Studio 14.0
我该如何解决?
推荐答案
原来,我必须安装Visual C ++.看到这篇文章: Visual Studio没有cl.exe
Turns out I had to install Visual C++. See this post: Visual studio doesn't have cl.exe
此后,我可以使用此命令,它会起作用:
After that I could use this command and it works:
nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output ARCH=x64
这篇关于Makefile.vc(18):致命错误U1050:无法自动检测工具链体系结构!如果cl.exe在您的PATH中,请使用ARCH =< arch>重新运行nmake.停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!