Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Build Qt5 from git with msys2 fails on wrong includes
TinTin82 last edited by TinTin82
i try to build Qt from source for windows desktop with mingw2. For that rison i do the following steps:
- git clone git://code.qt.io/qt/qt5.git
- perl init-repository --branch --no-update
- sh ..\qt5.\configure -c++std c++11 -platform win32-g++ -prefix D:\0000_Tools\19_Qt\02_Prefix -opensource -debug-and-release -static -static-runtime -opengl desktop -nomake examples -nomake tests -confirm-license
- make -j8
if i do that, i run in the following error:
D:/0000_Tools/19_Qt/01_GIT_Qt5/qt5/qtbase/src/corelib/tools/qcollator_p.h:57:10: fatal error: QVector: No such file or directory #include <QVector> compilation terminated. make: *** [Makefile.Debug:15071: .obj/debug/qcollator.o] Error 1 make: Leaving directory '/d/0000_Tools/19_Qt/01_GIT_Qt5/ShadowBuild/qtbase/sr c/corelib' . . .
if i look in the Folder:
there is a file:
But not a QVector.h
If i Change the Linefrom
this module compiles,
but the in run in a further include error:
D:/0000_Tools/19_Qt/01_GIT_Qt5/qt5/qtbase/src/corelib/mimetypes/qmimedatabase.cp p:53:10: fatal error: QtCore/QSet: No such file or directory #include <QtCore/QSet>
and so on...
Can anyone show me what is going worng with that ??
May i bootstrap Qt with a Compiler which does not have a Qt installed by itselfe ??
Thanks in advance for the help,
Why not build Qt with the version of MinGW provided directly with the installer ?
I really wanted to avoid that to pervent too much compilers on mu System ...
What version of MinGW do you have installed ?
gcc —Version 7.3.0 ( msys2 muild in )
So you have an error in your title. You wrote
Build Qt5 from git with mingw2 fails on wrong includes
Did you already saw https://wiki.qt.io/MSYS2 ?
Thx, i have changed the title "mingw2 -> msys2"
jcelerier last edited by jcelerier
I had the same problem and found this thread by googling.
After asking on IRC Thiago told use the solution : you have to put another perl distribution in your PATH before msys perl (Thiago recommended StrawberryPerl, I also tested with ActivePerl and it seems to work) and then run ./configure.