[Solved] qmake stuck in infinite loop



  • Hi there.

    I'm experiencing quite strange behaviour of qmake on Windows 7.

    I have 3 .pro projects that share some common code, and that code is taken out to a separate .pri project. It is included like this:
    @include(../common/common.pri)@

    Now, when I try to build these projects on Windows, I get this:
    @
    19:57:30: Running steps for project Backend...
    19:57:30: Starting: "C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe" D:\dev\lampscontrol\backend\Backend.pro -r -spec win32-g++ "CONFIG+=release"
    19:57:31: The process "C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe" exited normally.
    19:57:31: Starting: "C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\mingw64\bin\mingw32-make.exe"
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\qt-5.4.0-x86-mingw492r0-dw2\bin\qmake.exe -spec win32-g++ CONFIG+=release -o Makefile ..\backend\Backend.pro
    makefile:186: recipe for target 'Makefile' failed
    mingw32-make: *** [Makefile] Interrupt
    19:57:43: The process "C:\Qt\qt-5.4.0-x86-mingw492r0-dw2-angle\mingw64\bin\mingw32-make.exe" exited with code -1.
    19:57:43: Canceled build/deployment.
    19:57:43: Elapsed time: 00:14.
    @

    This happens occasionly, but only on Windows. On linux it builds without any problems.

    Has anybody experienced this? Any ideas how to fix this? Thanks.



  • Yes, I (and other users) suffered of this bug, in my case was a conflict between an installation of Qt SDK and MSYS, I solved it by calling mingw32-make instead of make. All of this when compiling from a MSYS console.



  • Thanks, building with mingw32-make from MSYS console solved the problem.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.