Qt Creator 2.7.0 compiler error

Screen-shot from Tools > Options > Build & Run > Compilers 在这里输入图像描述

Screen-shot from Tools > Options > Build & Run > Qt versions 在这里输入图像描述

Screen-shot from Tools > Options > Build & Run > Kits 在这里输入图像描述

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?

PS: No default compiler configured on QT creator.


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

Qt套件

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

  • MinGW 4.7.2 32-bit
  • MSVC 2010 32-bit
  • MSVC 2010 32-bit with OpenGL
  • MSVC 2012 64-bit
  • You must choose package that is binary compatible with your compiler (runtime C library).

    链接地址: http://www.djcxy.com/p/68616.html

    上一篇: 在Qt Creator中缺少编译器

    下一篇: Qt Creator 2.7.0编译器错误