编译Qt - Visual Studio 2010 [英] Compiling 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:
编译:
- 设置QMAKESPEC = win32-msvc2010
- 配置-platform win32-msvc2010
- nmake
集成到VS2010:
- 下载Visual Studio Qt add -in and install
- 从菜单中选择:Qt / Configure Qt Versions。
- 添加新版本以指向已编译的二进制文件
- 重新启动Visual studio并重建
项目。
- Download Visual Studio Qt add-in and install
- Select from menu: Qt/Configure Qt Versions.
- Add new version to point to compiled binaries
- 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屋!