# qmake process cannot be started

• Hi,

since yesterday i'm getting a strange error message when trying to compile a project (unfortunately in german):

13:17:20: Führe Schritte für Projekt TestCompile aus...
13:17:20: Der Prozess "C:\Qt\5.11.2\mingw53_32\bin\qmake.exe" D:\Daten\Develop\Qt\Test\TestCompile\TestCompile.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" nicht gestartet werden
Fehler beim Erstellen/Deployment des Projekts TestCompile (Kit: Desktop Qt 5.11.2 MinGW 32bit)
Bei der Ausführung von Schritt "qmake"
13:17:20: Verstrichene Zeit: 00:00.

What it says is that the process "qmake".... cannot be started. Tried it on the command line and it works just fine.

I'm using QtCreator 4.7.1 and QT 5.11.2 (did a re-install right now).

Did some research on the net, but with no luck....

Any ideas?

Thanks....

• @qtyeti

Go in creator to "Tools"->"Options"->"Kits" and check there every tab for special signs in red or yellow.

• Hi,

did that, but with no luck, no special signs in re dor yellow (for mingw and for MSVC compilers).

• @qtyeti
So start by trying to run just C:\Qt\5.11.2\mingw53_32\bin\qmake.exe from a Command Prompt, completely outside of Qt Creator. "Theoretically" from the error message just this will fail to start, independent of the command-line arguments for the .pro file? Might give you a clue like a missing DLL?

• Running qmake from the command line (without any options) just gives me all the available options, so I assume this is ok.

And when I run it with this command line:

C:\Qt\5.11.2\mingw53_32\bin\qmake.exe D:\Daten\Develop\Qt\Test\TestCompile\TestCompile.pro -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug

I get no message at all....

Looks like there is some issue with QtCreator, but I have no clue where to look...

• @qtyeti Maybe anti-virus software blocking qmake.exe when started from QtCreator?

• Thanks for the hint, at least I'M now able to start qmake process (Kaspersky blocked it :-((

But still the qmake process crashes:

***
10:43:28: Führe Schritte für Projekt text333 aus...
10:43:28: Starte "C:\Qt\5.11.2\mingw53_32\bin\qmake.exe" D:\Daten\Develop\Qt\Test\text333\text333.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
10:43:28: Der Prozess "C:\Qt\5.11.2\mingw53_32\bin\qmake.exe" ist abgestürzt.
Fehler beim Erstellen/Deployment des Projekts text333 (Kit: Desktop Qt 5.11.2 MinGW 32bit)
Bei der Ausführung von Schritt "qmake"
10:43:28: Verstrichene Zeit: 00:00.

When running the command from the console, no messages are shown....

• @qtyeti

Nope, qmake does not output the messages as expected by creator. Therefore, creator assumes that it has been crashed.
IMHO there is no way that creator can determine whether the application actually crashed or simply has been killed manually or by AV app.

• I think I give up... Now creator again is not able to start the qmake process. I checked the AV, but this looks ok (qmake is enabled).
I tried this one: removed the .pro.user file and restarted the qmake out from creator and a new .pro.user was generated. So, what does this tell me? Is something wrong with the error checking in creator or is there a different palce where I should look?

• @qtyeti Can you try to completely disable your anti-virus software and see whether it works then?

• Thanks, tried that already, but still no luck...

• ***
10:43:28: Führe Schritte für Projekt text333 aus...
10:43:28: Starte "C:\Qt\5.11.2\mingw53_32\bin\qmake.exe" D:\Daten\Develop\Qt\Test\text333\text333.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
10:43:28: Der Prozess "C:\Qt\5.11.2\mingw53_32\bin\qmake.exe" ist abgestürzt.
Fehler beim Erstellen/Deployment des Projekts text333 (Kit: Desktop Qt 5.11.2 MinGW 32bit)
Bei der Ausführung von Schritt "qmake"
10:43:28: Verstrichene Zeit: 00:00.

When running the command from the console, no messages are shown....

Where does "CONFIG+=debug" "CONFIG+=qml_debug" come from?

I have just checked with the "Compile Output" pane in my creator. I do not have any additional CONFIG definition there.
Do you use qml at all?

• I don't use qml. Was a standard setting in the qmake options. But even without those options there is no success.
Anyway, I disabled Kaspersky AV and Windows defender and still no luck. So I think this will be an issue for the "X-Files" :-))

Will switch back to Visual Studio - this is working at least....

• @qtyeti

Strange I have changed years back from VS to Qt creator and MinGW because VS was not quite as stable.

Anyway one last possibly stupid question, did you install MinGW compiler as well?

You should have installed it directlöy with creator and Qt lib and it is part of the tools section.

Since you mention VS installation is working. In ancient times VS required some environment settings (e.g. an entry in path), there might be a conflict. With creator the environment stuff is handled independent of Windows. There should be no settings IIRC.

• There are no stupid questions :-))

Yes, MinGW compiler was installed.

Checked the env variables, but nothing obvious...

Anyway, thanks to everyone for the advices, looks like I have to do without Qt (what a pity).

• Hi,

just FYI: Now qmake is working again!
What I did: uninstalled Visual Studio 2015 (I don't really need it), uninstalled Qt and reinstalled the offline version.

No Idea why this made it work again...
Will set this thread to "solved" now.