使用 Visual C++ 2010 构建 Qt 4.5

2021-12-14 00:00:00 qt4 c++ visual-studio-2010

是否有人尝试使用 Visual Studio 2010(Beta 2)构建 Qt 4.5?是否有任何成功的提示?

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

稍后编辑我尝试从 Visual Studio 2010 控制台运行配置.2010 没有 makespecs 支持,因此配置失败.

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.

推荐答案

它对我来说就像构建 vs2008 一样,但是使用 vs2010 工具:

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

  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

相关文章