CMAKE,NMAKE makefiles - '编译器cl未找到'(但VS 12发电机成功) [英] CMAKE, NMAKE makefiles - 'compiler cl not found' (but VS 12 generator succeeds)

查看:515
本文介绍了CMAKE,NMAKE makefiles - '编译器cl未找到'(但VS 12发电机成功)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS环境变量预先用vcvars32.bat设置,VS是我使用的唯一编译器;操作系统是win 7。

The VS environment variable is set beforehand with vcvars32.bat, and VS is the only compiler that I use; the OS is win 7.

这个错误发生在cmake-gui;指定编译器的路径导致错误'编译器无法进行简单测试';或者,命令行中的cmake -i最初会显示一个options菜单,然后无法分配一个cmakelists.txt文件(位于cmake文件夹中更深的位置)。

The error happens with cmake-gui; specifying the compiler with path results in error 'compiler failed to make simple test'; alternatively, cmake -i from command line succeeds initially with presenting an 'options' menu which then fails to allocate a 'cmakelists.txt' file (which is somewhere deeper in the cmake folder).

我在哪里出错?
(我继续构建VS 12的解决方案文件,但还有其他问题。)

Where am I going wrong? (I continued with building the solution files from VS 12, but there's other issues.)

推荐答案

您的问题来自 cmake邮寄名单


从目标环境运行cmake-gui,就像运行cmake ...

Run cmake-gui FROM the target environment, just like you run cmake...

ie :在cmd提示符下输入cmake-gui,让你的东西在其中设置
。不要只是从快捷方式启动它,除非你使用
Visual Studio *生成器。那些不需要任何特殊的
环境。很多makefile都有。

i.e. : type "cmake-gui" in the cmd prompt that has your stuff set up in it. Don't just launch it from a short-cut unless you're using the "Visual Studio *" generators. Those do not need any special environment. Many of the makefile ones do.

这篇关于CMAKE,NMAKE makefiles - '编译器cl未找到'(但VS 12发电机成功)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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