NMAKE : fatal error U1073
-
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
-
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).
-
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 2D:\qt-everywhere-opensource-src-5.1.0>@
-
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/
-
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 -
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?