Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error when building Qt 5.15.2 make: *** [Makefile:103: module-qtbase-install_subtargets] Error 2
Qt 6.11 is out! See what's new in the release blog

Error when building Qt 5.15.2 make: *** [Makefile:103: module-qtbase-install_subtargets] Error 2

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 3 Posters 8.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kennesy
    wrote on last edited by
    #7

    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

    jsulmJ 1 Reply Last reply
    0
    • K Kennesy

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #8

      @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...

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kennesy
        wrote on last edited by
        #9

        Now when I rebuild I get this error
        C:\qt-everywhere-src-5.15.2\qtbase\include\QtCore../../src/corelib/global/qglobal.h(41): fatal error C1083: Cannot open file include: limits: No such file or directory

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #10

          Did you do a configure and build from scratch using the MinGW version provided by Qt from clean sources ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kennesy
            wrote on last edited by
            #11

            Of course

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #12

              Just to rule out the obvious, can you find it in your MinGW installation ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              K 1 Reply Last reply
              0
              • K Offline
                K Offline
                Kennesy
                wrote on last edited by
                #13

                I'm a little confused about what to find?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #14

                  The limit header.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Just to rule out the obvious, can you find it in your MinGW installation ?

                    K Offline
                    K Offline
                    Kennesy
                    wrote on last edited by
                    #15

                    @SGaist I checked, yes i found it

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      Kennesy
                      wrote on last edited by
                      #16

                      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,
                      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #17

                        Can you post the exact steps you are following from scratch up to the error ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          Kennesy
                          wrote on last edited by
                          #18

                          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

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #19

                            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.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            K 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              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.

                              K Offline
                              K Offline
                              Kennesy
                              wrote on last edited by
                              #20

                              @SGaist
                              I need exactly Qt 5.15.2, other versions don’t suit me, but I also received an error with Qt 5.15.4 (I just wanted to check if the problem is in qt 5.15.2). Are there really no ways to solve this problem?

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                Kennesy
                                wrote on last edited by
                                #21

                                Anyone help?

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved