Error when building Qt 5.15.2 make: *** [Makefile:103: module-qtbase-install_subtargets] Error 2
-
I've encountered a couple of errors that I don't know what to do with.
make[1]: Target 'install' not remade because of errors.
make[1]: Leaving directory 'C:/qt-everywhere-src-5.15.2/qtbase'
make: *** [Makefile:103: module-qtbase-install_subtargets] Error 2
make: Target 'install' not remade because of errors.![alt text].
And also
/include/QtCore/../../src/corelib/global/qglobal.h:40:10: fatal error: limits: No such file or directory
40 | #include <limits>. Please help! -
Hi and welcome to devnet,
You might want to add which compiler you are using.
-
Which version ?
How did you install it ? -
c:/w64devkit/bin/sh: syntax error: unexpected end of file (expecting "then")
mingw32-make: *** [makefile:90: module-qtbase-make_first] Error 2
mingw32-make: Target 'first' not remade because of errors.
c:/w64devkit/bin/sh: syntax error: unexpected end of file (expecting "then")
mingw32-make: *** [makefile:102: module-qtbase-install_subtargets] Error 2
mingw32-make: Target 'install' not remade because of errors.
Thats doesnt work -
c:/w64devkit/bin/sh: syntax error: unexpected end of file (expecting "then")
mingw32-make: *** [makefile:90: module-qtbase-make_first] Error 2
mingw32-make: Target 'first' not remade because of errors.
c:/w64devkit/bin/sh: syntax error: unexpected end of file (expecting "then")
mingw32-make: *** [makefile:102: module-qtbase-install_subtargets] Error 2
mingw32-make: Target 'install' not remade because of errors.
Thats doesnt work@Kennesy said in Error when building Qt 5.15.2 make: *** [Makefile:103: module-qtbase-install_subtargets] Error 2:
Thats doesnt work
What doesn't work? MinGW installed via Qt Online Installer or Qt Maintenance Tool?
If so: did you do complete rebuild after changing the compiler?
c:/w64devkit - doesn't look like you changed to MinGW provided by Qt... -
Did you do a configure and build from scratch using the MinGW version provided by Qt from clean sources ?
-
Just to rule out the obvious, can you find it in your MinGW installation ?
-
The limit header.
-
I still managed to start building, but during installation I got the following error:
mimetypes/qmimeprovider.cpp:638:30: error: 'mimetype_database' was not declared in this scope
638 | Q_STATIC_ASSERT_X(sizeof(mimetype_database), "Bundled MIME database is empty");
| ^~~~~~~~~~~~~~~~~
global/qglobal.h:121:68: note: in definition of macro 'Q_STATIC_ASSERT_X'
121 | # define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
| ^~~~~~~~~
mimetypes/qmimeprovider.cpp:639:52: error: 'MimeTypeDatabaseOriginalSize' was not declared in this scope
639 | Q_STATIC_ASSERT_X(sizeof(mimetype_database) <= MimeTypeDatabaseOriginalSize,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
Can you post the exact steps you are following from scratch up to the error ?
-
I started the build, then raised the numeric limits error and added #include limts to this file. The build was successful, but during installation I received this error, the same error occurred with Qt 5.15.4. I have the actual version of Perl, Python and Ruby
-
Just realized, is there any specific reason for 5.15.4 ? Since you are building yourself anyway, you should consider using the latest available sources.
-
Just realized, is there any specific reason for 5.15.4 ? Since you are building yourself anyway, you should consider using the latest available sources.