Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

First time installing, 5.12.1 + MinGW7.30-64, compile error



  • Hi,

    I am a first time qt user, downloaded the qt-unified-windows-x86-3.0.6-online.exe for my qt installation (the open source one). I've installed ONLY MinGW7.30-64 from qt5.12.1 install selection + the default qt creator. (I used to click more stuff but in an attempt to narrow down the problem I've only installed this much). I am on Windows 10.

    If I make a new project, I will get the following in "General Message":

    Maybe you forgot to setup the environment?
    Error while parsing file C:\Users\Admin\Google Drive\Python\qt-test6\qt-test6.pro. Giving up.

    When I use command Ctrl+R on this new project, the following will appear in "Issue" :

    Cannot run compiler 'g++'.

    and more error message in "Compile Output":

    Maybe you forgot to setup the environment?
    22:01:24: The process "C:\Qt\5.12.1\mingw73_64\bin\qmake.exe" exited with code 3.
    Error while building/deploying project qt-test5 (kit: Desktop Qt 5.12.1 MinGW 64-bit)
    The kit Desktop Qt 5.12.1 MinGW 64-bit has configuration issues which might be the root cause for this problem.
    When executing step "qmake"
    22:01:24: Elapsed time: 00:00.

    Please help


  • Moderators

    @VietThan said in First time installing, 5.12.1 + MinGW7.30-64, compile error:

    I've installed ONLY MinGW7.30-64 from qt5.12.1 install selection + the default qt creator. (I used to click more stuff but in an attempt to narrow down the problem I've only installed this much).

    Scroll down to the bottom of the selection tree and expand "Tools" (the label might be a bit different in the latest installer). You must also install the MinGW 7.3.0 64-bit toolchain.

    See this tutorial for more details.



  • Hi,

    thank you for your response. Does that means the "Min GW 7.3.0 64" in the "Qt 5.12.1" section different from the one in the "Tools" section of the installation?

    Sincerely. Viet Than


  • Lifetime Qt Champion

    @VietThan Yes. First is the Qt version (in this case Qt 5.12.1 built using Min GW 7.3.0 64 compiler), second one (in Tools) is the compiler itself. You always have to use same compiler which was used to build Qt. The reason is that different C++ compilers are not compatible with each other.


Log in to reply