如何建立使用Qt和VS2010像应用招呼字 [英] how to build a hello word like application using Qt and VS2010

查看:191
本文介绍了如何建立使用Qt和VS2010像应用招呼字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经都在这里和在网络上其他地方看了很多答案,但我仍然无法建立/使用VS2010和最新的Qt开源(4.7.2)为VS2008运行一个小型的Hello World应用程序一样。

I have read many answers both here and on other places on the net, but I'm still unable to build / run a small hello world like application using VS2010 and the latest Qt opensource (4.7.2) for VS2008.

下面是我做过的步骤,当然重新启动的在需要的地方:

Here are the steps I've done, and of course restarted where needed:


  1. 安装VS2010

  2. 安装VS2010 SP1

  3. 下载并安装QT-双赢开源-4.7.2-vs2008.exe

  4. 下载并安装QT-VS-插件-1.1.9.exe

在VS2010现在我有Qt的项目模板。我选择了Qt应用程序,接受默认设置并创建了一个。首先,它没有找到QTDIR文件夹。所以,我已经运行C:\\的Qt \\ 4.7.2 \\ BIN \\ qtvars.bat以管理员身份,而现在VS2010都没有问题建设项目/找到包含文件

In VS2010 now I have the project templates for Qt. I selected QT Application, accepted defaults and created one. First it didn't find the QTDIR folder. So I've run c:\Qt\4.7.2\bin\qtvars.bat as administrator, and now VS2010 have no problem with building the project / finding the include files.

和多数民众赞成在我的知识停了下来,我还是不能运行从构建创建的EXE文件。当开始从Total Commander中创建的EXE文件,它说:

And thats where my knowledge stopped, I still cannot run the exe files created from the build. When starting the created exe files from Total Commander, it says:

和从内部VS2010启动时,他们这样说的:

and when starting them from within VS2010 it says:

您能帮我是什么原因造成这个问题,究竟是什么可能的解决方案? 是这一切的发生,因为Qt是编译VS2008,我试图用VS2010?但是我已经在很多地方,它应该工作得很好看。

Can you help me what is causing this problem and what is a possible solution for this? Is all this happening because Qt is compiled for VS2008 and I'm trying to use VS2010? But I've read it on many places that it should work well.

如果我需要重新编译的Qt为VS2010,那么什么是做到这一点的最好办法吗我想使用Qt创建简约OpenGL应用程序,什么是配置的Qt在适当的方式这个案例?

And if I need to recompile Qt for VS2010, then what is the best way to do it? I would like to create minimalistic OpenGL applications using Qt, what is the appropriate way to configure Qt in this case?

壳牌卸载的Qt完全从源开始?

推荐答案

大量的阅读和反复试验后,我做了工作,我写了一个指南,了解有关在这里:

After a lot of reading and trial and error, I made it work and I wrote a guide about it here:

如何对Qt的构建为Visual Studio 2010

这篇关于如何建立使用Qt和VS2010像应用招呼字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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