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

好久不见. 提交于 2020-01-06 06:04:50

问题


I'm trying to build libwebp.dll for webp, using these instructions (I downloaded this source code)

However, I'm getting the error:

Makefile.vc(18) : fatal error U1050: Unable to auto-detect toolchain architecture! If cl.exe is in your PATH rerun nmake with ARCH=. Stop.`

on command nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output in the Developer Command Prompt for Visual Studio 2017 (Community Edition).

I don't see file cl.exe anywhere in C:\Program Files (x86)\Microsoft Visual Studio 14.0

How can I fix this?


回答1:


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



来源:https://stackoverflow.com/questions/50050311/makefile-vc18-fatal-error-u1050-unable-to-auto-detect-toolchain-architectur

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!