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)?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With