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. NMAKE : fatal error U1073
Forum Updated to NodeBB v4.3 + New Features

NMAKE : fatal error U1073

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 5.8k 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.
  • Q Offline
    Q Offline
    Qatto
    wrote on last edited by
    #1

    Hello,

    Am trying to build Qt with Nmake on windows but end up with the error:

    NMAKE : fatal error U1073: don't know how to make 'sub-src'
    Stop.

    Could anyone please show me how to fix this. If its about environmental settings, what exactly should I add. Mingw already failed, So we are basically left with Nmake.

    Thanks in Advance

    Web/Desktop Developer

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      Where did you get the source code from?

      What are your configure options?

      How did MinGW fail? (the link you provided only shows a patch that simplifies the build script, not why MinGW would fail)

      You don't need anything in your PATH except your compilation tools (In fact, make sure that you remove any traces of Qt and unrelated compilers from your PATH).

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qatto
        wrote on last edited by
        #3

        Sorry about the link, but MinGW produces the following output before exiting:

        @c:\mingw\include\io.h:301:14: error: 'off64_t' does not name a type
        __CRT_INLINE off64_t lseek64 (int, off64_t, int);
        ^
        c:\mingw\include\io.h:302:14: error: 'off64_t' does not name a type
        __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
        ^
        Makefile.Debug:8214: recipe for target '.obj/debug_static/qhttpnetworkreply.o' f
        ailed
        mingw32-make[4]: *** [.obj/debug_static/qhttpnetworkreply.o] Error 1
        mingw32-make[4]: Leaving directory 'D:/qt-everywhere-opensource-src-5.1.0/qtbase
        /src/network'
        Makefile:38: recipe for target 'debug-all' failed
        mingw32-make[3]: *** [debug-all] Error 2
        mingw32-make[3]: Leaving directory 'D:/qt-everywhere-opensource-src-5.1.0/qtbase
        /src/network'
        Makefile:182: recipe for target 'sub-network-make_first' failed
        mingw32-make[2]: *** [sub-network-make_first] Error 2
        mingw32-make[2]: Leaving directory 'D:/qt-everywhere-opensource-src-5.1.0/qtbase
        /src'
        Makefile:40: recipe for target 'sub-src-make_first' failed
        mingw32-make[1]: *** [sub-src-make_first] Error 2
        mingw32-make[1]: Leaving directory 'D:/qt-everywhere-opensource-src-5.1.0/qtbase
        '
        Makefile:56: recipe for target 'module-qtbase-make_first' failed
        mingw32-make: *** [module-qtbase-make_first] Error 2

        D:\qt-everywhere-opensource-src-5.1.0>@

        Web/Desktop Developer

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Looks like a bug in MinGW:
          http://sourceforge.net/p/mingw/bugs/2024/
          https://qt-project.org/forums/viewthread/33370/

          Try a different version. The Qt Project uses MinGW-builds: http://sourceforge.net/projects/mingwbuilds/

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            Qatto
            wrote on last edited by
            #5

            After installing MinGW-builds, even configure couldn't work any more. I always get the following error with the command configure -static....

            Makefile:350: recipe for target 'qfilesystemengine_win.o' failed
            mingw32-make: *** [qfilesystemengine_win.o] Error 1
            Building qmake failed, return code 2

            Web/Desktop Developer

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Did you clean your source tree before re-configuring with a different compiler?

              Where did you get the source code from?

              What are your configure options?

              What's in your PATH? (please show every item)

              [quote]
              Makefile:350: recipe for target ‘qfilesystemengine_win.o’ failed
              mingw32-make: *** [qfilesystemengine_win.o] Error 1
              Building qmake failed, return code 2
              [/quote]This just says "an error has occurred". The actual error message is a bit higher up -- can you please post that?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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