Compile qt5.15.2 failed without .git
-
S ShylockHg has marked this topic as solved
-
Do you have the same result with just the stock zip file ? Without any modification.
-
I tried qtbase, it's failed too.
shylock@shylock-pc ~/Workspace/qtbase-5.15.2/build$ ../configure -xcb -confirm-license -opensource --prefix=/home/shylock/Workspace/nl-thrid-party/build/install QMAKE_CXXFLAGS=-w QMAKE_CFLAGS=-w Preparing build tree... Creating qmake... .In file included from /home/shylock/Workspace/qtbase-5.15.2/qmake/library/qmakeparser.h:32, from /home/shylock/Workspace/qtbase-5.15.2/qmake/library/qmakeevaluator.h:36, from /home/shylock/Workspace/qtbase-5.15.2/qmake/project.h:32, from /home/shylock/Workspace/qtbase-5.15.2/qmake/main.cpp:30: /home/shylock/Workspace/qtbase-5.15.2/qmake/library/qmake_global.h:32:10: fatal error: qglobal.h: No such file or directory 32 | #include <qglobal.h> | ^~~~~~~~~~~ compilation terminated. make: *** [Makefile:250: main.o] Error 1 -
Use out of source builds.
Also, are you working from a fresh source folder ? -
@SGaist
Failed too.shylock@shylock-pc ~/Workspace/qtbase-5.15.2$ ./configure -xcb -confirm-license -opensource --prefix=/home/shylock/Workspace/nl-thrid-party/build/install QMAKE_CXXFLAGS=-w QMAKE_CFLAGS=-w Creating qmake... .In file included from /home/shylock/Workspace/qtbase-5.15.2/qmake/library/qmake_global.h:32, from /home/shylock/Workspace/qtbase-5.15.2/qmake/library/qmakeparser.h:32, from /home/shylock/Workspace/qtbase-5.15.2/qmake/library/qmakeevaluator.h:36, from /home/shylock/Workspace/qtbase-5.15.2/qmake/project.h:32, from /home/shylock/Workspace/qtbase-5.15.2/qmake/main.cpp:30: ../src/corelib/global/qglobal.h:64:10: fatal error: QtCore/qconfig-bootstrapped.h: No such file or directory 64 | #include <QtCore/qconfig-bootstrapped.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:250: main.o] Error 1 -
Don't use GitHub to download the Qt sources zip file. Use the official one provided by the Qt Company.
-
Don't use GitHub to download the Qt sources zip file. Use the official one provided by the Qt Company.
-
S ShylockHg has marked this topic as solved
-
The reason is that GitHub just zips the content of the repository.
The official archives are ready to configure/build for the platform selected (.zipfor Windows andtar.gzfor unix like).