编译Qt - Visual Studio 2010 [英] Compiling Qt - Visual Studio 2010

查看:146
本文介绍了编译Qt - Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关使用Visual Studio 2010编译Qt 4.7的教程或信息。

我最近遇到了bug在Visual Studio 2010上使用Qt 4.7.1库,并发现重新编译Qt与2010年的信息可能解决它。 编辑:这解决了此问题。

I've recently have run into an bug using Qt 4.7.1 libraries on Visual Studio 2010 and have found information that recompiling Qt with 2010 can potentially solve it. Edit: This has solved the issue.

参考: http://www.qtforum.org/article/34406/

Ref: http://www.qtforum.org/article/34406/heap-corruption-caused-by-calling-selectedindexes-method-of-qitemselectionmodel-class.html

研究一段时间后,我成功地能够使用以下代码编译VS2010中的Qt:

After Researching for awhile, I was successfully able to compile Qt in VS2010 using the following:

编译


  1. 设置QMAKESPEC = win32-msvc2010

  2. 配置-platform win32-msvc2010

  3. nmake

集成到VS2010:


  1. 下载Visual Studio Qt add -in and install

  2. 从菜单中选择:Qt / Configure Qt Versions。

  3. 添加新版本以指向已编译的二进制文件

  4. 重新启动Visual studio并重建
    项目。

  1. Download Visual Studio Qt add-in and install
  2. Select from menu: Qt/Configure Qt Versions.
  3. Add new version to point to compiled binaries
  4. Restart Visual studio and rebuild projects.

希望这有助于其他人...

Hope this helps others...

其他参考:

http://www.holoborodko.com/pavel/2011/ 02/01 / how-to-compile-qt-4-7-with-visual-studio-2010 /
http://blog.paulnettleship.com/2010/11/11/troubleshooting-visual-studio- 2010-and-qt-4-7-integration /
http://dcsoft.wordpress.com/2010/01/30/how-to-setup-qt-4-5-visual-studio-integration/

注意:重新编译VS2010修正了上述的错误。

Note: recompiling for VS2010 fixed bug experienced above.

推荐答案

您的意思是像

这里官方文档。

这篇关于编译Qt - Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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