elvis.dukaj elvis.dukaj - 1 year ago 67
C++ Question

qmake issue when building: infinite building

I've a very strange bug when I try to build with QtCreator.

When I try to build in the Compile Output I've this line repeated infinite times.

C:\Qt\5.1.0\mingw48_32\bin\qmake.exe -spec win32-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ..\project\project.pro

I tryed to remove the build directory, but nothing. I've tryed to remove the *.user and regenerate them but nothing.

Does someone had the same problem?

Answer Source

The same problem occurs on my computer from time to time too. I found out it is caused by the .pro file having the file date-time in the future (due to some bug in syncing program).

Setting the .pro file time to now, for example by editing it in Qt Creator, solves the problem.