Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the different platforms for Qt's configure

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 Creator)?

like image 867
laurent Avatar asked Mar 06 '11 14:03

laurent


People also ask

Where is Qt configure script?

12.1\, the source code of Qt will be installed in directory c:\Qt5. 12.1\5.12. 1\Src\. There you can find the configure scripts: configure(for Linux) and configure.


1 Answers

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.

like image 87
Johnny Avatar answered Oct 11 '22 21:10

Johnny