什么是Qt的配置不同的平台 [英] What are the different platforms for Qt's configure
问题描述
我想在Windows的Qt构建用下面的命令:
I'm trying to build Qt on Windows with the following command:
configure -static -opensource -no-webkit -no-qt3support -no-audio-backend -no-exceptions -no-opengl -no-phonon -phonon-backend
和我得到这个错误:
Unable to detect the platform from environment. Use -platform command lineargument
不过,我不知道什么是对-platform的说法不同的可能值。我想的win32和窗口,但他们都不是正确的。我无法找到将列出可能的值的任何引用。有谁知道我需要把对Windows 7(与Qt Creator的发展)?
However I don't know what are the different possible values for the "-platform" argument. I tried "win32" and "windows" but none of them are right. I can't find any reference that would list the possible values. Does anybody know what I need to put for Windows 7 (developing with Qt Creator)?
推荐答案
打开 mkspecs
QT目录内的文件夹。在那里,你可以看到多个文件夹。该文件夹的名称是 -platform
开关值。
Open mkspecs
folder inside qt dir. There you can see multiple folders. Names of this folders are values for -platform
switch.
例如,你可以使用 Win32的MSVC
。 MSVC
使用MS Visual Studio的编译器层楼高QT手段。
For example, you can use win32-msvc
. msvc
means using MS visual studio compiler for buiding qt.
这篇关于什么是Qt的配置不同的平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!