Cannot build Qt 4.8.1 using nmake
Hello. I’m attempting an out-of-source build of Qt 4.8.1 with a target of visual studio 2010 and failing on two fronts.
The first problem is that the Makefile is being output to the source directory, not the build directory. A Makefile of some sort is put in the build directory, but it’s recursive and just ends up launching nmake processes on itself until I cancel it. I have had this problem randomly with out-of-source builds in the past and the solution is to copy the Makefile it puts in the source directory into the build directory and usually that’s sufficient. However now I get a new error:
- NMAKE : fatal error U1073: don't know how to make 'FORCE'
- Stop.
The configure line I use for this is:
- C:\Qt\4.8.1>..\4.8.1-src\configure -debug-and-release -opensource -fast -no-qt3support -platform win32-msvc2010 -qt-zlib -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -no-dsp -no-vcproj -no-incredibuild-xge -no-webkit -mp
Picking a line from the Makefile which includes “FORCE” (of which there are many) looks like this:
- sub-tools-bootstrap-qmake-all: FORCE
- @$(CHK_DIR_EXISTS) src\tools\bootstrap\ $(MKDIR) src\tools\bootstrap\
Any ideas?
3 replies
You must log in to post a reply. Not a member yet? Register here!

