Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unable to statically build Qt 5.2.* on Windows/MinGW
While I've never had any problems building Qt statically before, from the 4.* versions all the way up to 5.1.1, both 5.2.0 and 5.2.1 fail with the same error when I try to build them statically on Windows (7 64-bit). As always, I'm using the Qt+MinGW command line (this time the 5.2.1 version that's installed as part of the latest SDK.)
I use the command line:
@mingw32-make -static -nomake examples -opengl desktop@
Which after some time fails with:
'QT_PLUGIN_PATH' is not recognized as an internal or external command, operable program or batch file.
Project ERROR: Failed to parse qmlimportscanner output.
make: *** [sub-qml-make_first] Error 3
make: Leaving directory
/c/QtLib/5.2.1-static/qtdeclarative/tools' make: *** [sub-tools-make_first] Error 2 make: Leaving directory/c/QtLib/5.2.1-static/qtdeclarative'
make: *** [module-qtdeclarative-make_first] Error 2
Any idea how I might be able to fix this?
Might be a silly question but you are showing a mingw32-make call with what looks like configure options, is it a copy-paste error ?
Sorry, my mistake. Indeed, that should read:
@configure -static -nomake examples -opengl desktop@
Do you have anything unusual from the output of configure ?
No... it complains if I don't specify -opengl desktop, but otherwise finishes without any warning, and a message telling me to run mingw32-make to start building...
You can follow this "guide":http://qt-project.org/wiki/How-to-build-a-static-Qt-for-Windows-MinGW
It might help sort out things
thepyper last edited by
I got the same problem, found the solution there:
It's a patch on qt.prt file that solves some weird invocation problem on qmlimportscanner.
adiposity last edited by
If you are still looking for this, I think the link has been changed to: