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

查看:410
本文介绍了Makefile.vc(18):致命错误U1050:无法自动检测工具链体系结构!如果cl.exe在您的PATH中,请使用ARCH =< arch>重新运行nmake.停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用libwebp.dll rel ="nofollow noreferrer">这些说明(我下载了此

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆