使用VS2010 Pro在Windows 8上构建Qt 4.8

时间:2012-03-10 03:47:56

标签: c++ visual-studio-2010 qt windows-8

我在Windows 8 Consumer Preview(x64)上安装了VS2010 Pro,用于制作桌面应用。 (没有地铁)。我已经下载了Qt 4.8源代码并试图像这样配置它:

C:\Libraries\Qt4.8\qt-everywhere-opensource-src-4.8.0>configure -debug-and-relea
se -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3su
pport

我收到此错误:

Qt: Untested Windows version 6.2 detected!
Unable to detect the platform from environment. Use -platform command lineargume
nt or set the QMAKESPEC environment variable and run configure again
See the README file for a list of supported operating systems and compilers.

我需要设置什么选项才能编译?

编辑:这有效:

configure -debug-and-release -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -platform win32-msvc2010

1 个答案:

答案 0 :(得分:4)

尝试将-platform win32-msvc2010添加为configure的选项。