Uploaded image for project: 'Qt Creator'
  1. Qt Creator

Error running qmake after error encountered during qmake run



    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.9.0-rc1
    • Fix Version/s: Qt Creator 4.9.0
    • Labels:
    • Environment:
      Qt Creator 4.9.0-rc1 (4.8.84)
      Based on Qt 5.12.2 (MSVC 2017, 32 bit)
      Built on Mar 26 2019 08:51:56
      From revision 8ff29ff19d
      Enterprise Features: Enabled

      On Windows 10 x64
    • Platform/s:
    • Commits:
      73da3d3bc0560a5a40d89951a7d4c9d11396bdc8 (qt-creator/qt-creator/4.9)


      Qt Creator gives the following error after a previous qmake run resulted in an error:

      Error while building/deploying project TestQtCRc (kit: <SELECTED_KIT>)

      When executing step "qmake"

       Steps to reproduce:

      1. Open Qt Creator 
      2. Create a new qmake project
        1. Example: CTRL + N -> Application -> Qt Widgets Application -> SomeName -> Select Kits (all or some)
        2. Or empty qmake project also works
      3. Open the pro file of the project from the Project Explorer
      4. Run qmake
        1. qmake completes without error
      5. Add an error to the qmake pro file
        1. error( "Some error" )
      6. Run qmake
        1. qmake runs and prints the error in the "Compile Output" output pane
      7. Run qmake again
        1. "Compile Output" output pane reports above error.
      8. Remove the error from the project and run qmake again
        1. "Compile Output" output pane still reports above error.
      9. Restart Qt Creator to be able to run qmake again.

      I have tested above for all of the the kits that I have, same behaviour:

      • Desktop Qt 5.12.0 MSVC2017 32bit
      • Desktop Qt 5.12.0 MSVC2017 64bit
      • Desktop Qt 5.12.2 MSVC2017 32bit2
      • Desktop Qt 5.12.2 MinGW 64-bit2
      • Desktop Qt 5.9.7 MinGW 32bit2
      • ...

      This was not an issue with Qt Creator 4.8. I first saw the issue in 4.9.0 beta 2 (not sure if in beta 1 though) 

      This is a blocker for upgrading Qt Creator 


        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            • Assignee:
              con Eike Ziller
              thebadger101 Carel Combrink
            • Votes:
              2 Vote for this issue
              9 Start watching this issue


              • Created:

                Gerrit Reviews

                There are no open Gerrit changes