Qt 4.7.1、Qt Creator 和 VS 2010 安装问题
在我的计算机(Win7 32、VS2010 Ultimate)上,我想使用 Qt Creator 和 Qt Visual Studio add in,这两个版本都是 LGPL 版本。
诺基亚网站上有minGW和VS2008版本的Qt框架,我没有找到VS 2010版本。
因此,我已经安装了 Qt 2010.05 SDK,并在 VS 2010 命令提示符中执行了以下步骤:
configure -static
nmake sub-src
我检查了 Qt Creator,它成功运行。翻译完成后,我安装了VS 2010 add,我尝试在路径中添加新的Qt版本
C:\Qt\2010.05\qt
,但出现了以下错误消息:
Qt in the给定路径是使用minGW构建的
它不明白为什么是因为已经针对VS2010进行了翻译。
错误在哪里?如何正确安装呢?
On my computer (Win7 32, VS2010 Ultimate) I would like to use Qt Creator and Qt Visual Studio add in, both LGPL versions.
There are minGW and VS2008 versions of Qt frameworks on the Nokia websites, I did not find VS 2010 version.
So I have installed Qt 2010.05 SDK and in the VS 2010 Command prompt the following steps have been performed:
configure -static
nmake sub-src
I checked Qt Creator and it successfully runs. After the translation has been finished I installed VS 2010 add I tried to add new Qt version int the path
C:\Qt\2010.05\qt
But the following error message has been appeared:
Qt in the given path was built using minGW
It do not understand why because the translation has been performed for the VS2010.
Where is the error? How to install it correctly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我从德国 Qt 论坛发现,VS 插件会查找
libqtmain.a
和libqtmaind.a
文件来确定它是否是使用 MinGW 构建的。你猜怎么着? Qt 附带了这些文件。删除它们,你就会没事的。
I found out from a German Qt forum that, VS add-in looks for
libqtmain.a
andlibqtmaind.a
files to determine if it is built with MinGW. Guess what? Qt ships with those files.Delete them, and you will be fine.
FWIW,Vs2008 版本与 VS2010 配合得很好。我不需要构建它或任何东西。您可以安装它,然后运行最新版本的 VS 插件安装程序,您应该会在 VS2010 中看到 Qt 菜单选项。
AFAIR 你的命令行不完整:我记得必须指定构建平台。可能是因为您没有在参数中指定 VS 版本,所以它正在使用 mingw 构建 Qt。您可能会对以下文章感兴趣:使用 Visual C++ 构建 Qt 4.5 2010
FWIW, The Vs2008 version works fine with VS2010. I didn't need to build it or anything. You can install that and then just run the latest version of the VS plug-in installer and you should see the Qt menu options in VS2010.
AFAIR your command line is incomplete: I remember one had to specify the build platform. It could be that it's using mingw to build Qt since you didn't specify the VS version in the parameters. The following post might be of interest to you: Building Qt 4.5 with Visual C++ 2010