windowsqtconfigurationmingw

Qt Creator 2.7.0 compiler error


Screen-shot from Tools > Options > Build & Run > Compilers enter image description here

Screen-shot from Tools > Options > Build & Run > Qt versions enter image description here

Screen-shot from Tools > Options > Build & Run > Kits enter image description here

Installed Qt creator 2.7.0 on my Windows 7.

Build a test Qt GUI Project - made it run, but encountered the following error:

:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.

Installed MinGW and tried level best to configure at QT's Tools > Options > Build & Run > Compilers, but failed.

Performed various combinations on PATH variable in Environment, but failed.

Nothings working! Not finding any solution.

Does anyone have any resolution for this?

P.S.: No default compiler configured on QT creator.


Solution

  • I notice in screenshot that you have Qt libraries compiled for MSVC2010, but you are trying to use them with MinGW compiler.

    Qt Kits

    On Qt project "downloads" page you will see that there are different binary packages for different compilers. For windows there are 4 packages:

    You must choose package that is binary compatible with your compiler (runtime C library).