qmake 和多个 MSVS 版本 [英] qmake and multiple MSVS versions

查看:46
本文介绍了qmake 和多个 MSVS 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2008 命令提示符 我运行这个命令来生成 .vcproj 文件:

From Visual Studio 2008 Command Prompt I run this command to generate .vcproj file:

>qmake -spec win32-msvc2008

并收到警告消息:

WARNING: Generator: MSVC.NET: Found more than one version of Visual Studio
in your path! Fallback to lowest version (MSVC.NET 2008 (9.0),
MSVC.NET 2008 Express Edition (9.0), MSVC.NET 2005 (8.0), 
MSVC.NET 2008 (9.0) in path, MSVC.NET 2008 Express Edition (9.0) in path)

对于这个项目,我使用 MSVS 2008 Professional.实际上生成的 .vcproj 文件运行良好,但是警告信息是关于什么的?

For this project I use MSVS 2008 Professional. Actually the generated .vcproj file works well, but what is the warning message about?

推荐答案

我从 PATH 环境变量中删除了旧版 Visual Studio 的所有引用,现在它可以正常工作了.

I removed all references of the older version of Visual Studio from the PATH environment variable and it now works fine.

在 Windows XP 上:从我的电脑 -> 属性 -> 高级选项卡,单击环境变量"按钮.在用户和系统变量部分,选择 PATH 并单击编辑按钮 - 将文本复制到文本编辑器(如果您想保存原始文件)并删除对 Visual Studio 2005 的任何引用.另外,请确保您的 QTDIR 和 QMAKSPEC变量设置为您要使用的 Qt 版本.

On Windows XP: From My Computer -> Properties -> Advanced tab, click on "Environment Variables" button. In both the user and system variables sections, select PATH and click the edit button - copy the text to a text editor (if you want to save your originals) and remove any reference to Visual Studio 2005. Also, make sure your QTDIR and QMAKESPEC variables are set to the version of Qt you want to use.

这篇关于qmake 和多个 MSVS 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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