开发者

What are the different platforms for Qt's configure

开发者 https://www.devze.com 2023-02-15 07:07 出处:网络
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

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

and I get this error:

Unable to detect the platform from environment. Use -platform command lineargument

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 开发者_如何学PythonCreator)?


Open mkspecs folder inside qt dir. There you can see multiple folders. Names of this folders are values for -platform switch.

For example, you can use win32-msvc. msvc means using MS visual studio compiler for buiding qt.


Answer found on this topic in russian language.

You should try -platform with those arguments:

  • win32-g++ (for mingw)
  • win32-icc (for intel)
  • win32-msvc (for visual studio)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号