Compile qt5.15.2 failed without .git
-
As shown:
[ 81%] Creating directories for 'qt' [ 82%] No download step for 'qt' [ 83%] No update step for 'qt' [ 85%] Performing patch step for 'qt' patching file qglobal.h [ 86%] Performing configure step for 'qt' + cd qtbase + /home/shylock/Workspace/third-party/lib/qt/qtbase/configure -top-level -xcb -confirm-license -opensource --prefix=/home/shylock/Workspace/third-party/build/install QMAKE_CXXFLAGS=-w QMAKE_CFLAGS=-w Preparing build tree... Creating qmake... In file included from /home/shylock/Workspace/third-party/lib/qt/qtbase/qmake/library/qmakeparser.h:32, from /home/shylock/Workspace/third-party/lib/qt/qtbase/qmake/library/qmakeevaluator.h:36, from /home/shylock/Workspace/third-party/lib/qt/qtbase/qmake/project.h:32, from /home/shylock/Workspace/third-party/lib/qt/qtbase/qmake/main.cpp:30: /home/shylock/Workspace/third-party/lib/qt/qtbase/qmake/library/qmake_global.h:32:10: fatal error: qglobal.h: No such file or directory 32 | #include <qglobal.h> | ^~~~~~~~~~~ compilation terminated. gmake[3]: *** [Makefile:250: main.o] Error 1 make[2]: *** [lib/CMakeFiles/qt.dir/build.make:92: lib/qt-prefix/src/qt-stamp/qt-configure] Error 2 make[1]: *** [CMakeFiles/Makefile2:395: lib/CMakeFiles/qt.dir/all] Error 2 make: *** [Makefile:91: all] Error 2but I can build it with .git. It's so strange, can I build it without .git?
-
Don't use GitHub to download the Qt sources zip file. Use the official one provided by the Qt Company.
-
Hi and welcome to devnet,
What steps are you doing exactly ?
There's a "patching file qglobal.h" that looks out of place. -
Hi and welcome to devnet,
What steps are you doing exactly ?
There's a "patching file qglobal.h" that looks out of place. -
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).