使用Visual C ++ 2010构建Qt 4.5 [英] Building Qt 4.5 with Visual C++ 2010

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

问题描述

有人试图用Visual Studio 2010(Beta 2)构建Qt 4.5吗?

我尝试从Visual Studio 2010控制台运行配置。没有对2010年的makepecs支持,所以配置失败,因为。

解决方案

它的工作对我来说,是vs2008,但使用vs2010工具:


  1. 打开vs2010命令提示符。 cd进入顶级Qt目录。

  2. configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -no-qt3support -fast

  3. nmake


Did somebody tried to build Qt 4.5 with Visual Studio 2010 (Beta 2)? Any hints on doing that successfuly?

Later edit I tried to run configure from a Visual Studio 2010 console. There is no makespecs support for 2010, so configure fails because of that.

解决方案

It worked for me to build just as if it was vs2008, but using the vs2010 tools:

  1. Open vs2010 command prompt. cd into the top-level Qt directory.
  2. configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -no-qt3support -fast
  3. nmake

这篇关于使用Visual C ++ 2010构建Qt 4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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