Unable to statically build Qt 5.2.* on Windows/MinGW
-
Hi there,
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[2]: *** [sub-qml-make_first] Error 3
make[2]: Leaving directory/c/QtLib/5.2.1-static/qtdeclarative/tools' make[1]: *** [sub-tools-make_first] Error 2 make[1]: Leaving directory
/c/QtLib/5.2.1-static/qtdeclarative'
make: *** [module-qtdeclarative-make_first] Error 2Any idea how I might be able to fix this?
Thanks, Nir
-
Hi,
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 ?
-
Do you have anything unusual from the output of configure ?
-
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
-
Hi!
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.
-
If you are still looking for this, I think the link has been changed to:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-qt5/qt-5.3.0-static-qmake-conf.patch