Qt creator needs a compiler



  • I Have Installed qt-opensource-windows-x86-msvc2015-5.6.0.exe and I have visual studio 2015 in my computer (windows 10 64 bit). But when I am running any program it is giving me this error.

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

    I have this specification in window "About Qt Creator".
    Based on Qt 5.6.0(MSVC 2013,32 bit).

    But in my computer:
    "C:\Qt\Qt5.6.0\5.6\msvc2015"

    From the menu of QtCreator, I Opened "Tools>Options>Build&Run>Compilers". No auto-detected configuration.


  • Moderators

    "About Qt Creator" isn't of any use in this case - it just says what was used to build Qt Creator.
    As far as I know if you install VS 2015 then C++ compiler is not installed by default. So, you need to check whether it is installed and if not install it. Then it should be autodetected (if not you can try to add it manually).



  • @jsulm
    Thank you.
    I try to add manual with this specification but it does not work and I have same error:

    Compilres:
    Compiler path:C:\Qt\Qt5.6.0\5.6\msvc2015\bin\windeployqt.exe
    Make path: C:\Qt\Qt5.6.0\5.6\msvc2015\bin\qmake.exe

    CMake:
    Path: C:\Qt\Qt5.6.0\5.6\msvc2015\bin\qmake.exe

    @jsulm said:

    I know if you install VS 2015 then C++ compiler is not installed by default. So, you need to check whether it is installed and if not install it.

    I see "microsoft visual c++ 20015 redistributable" in "Control Panel\All Control Panel Items\Programs and Features"


  • Moderators

    C:\Qt\Qt5.6.0\5.6\msvc2015\bin\windeployqt.exe - is not a compiler!
    C:\Qt\Qt5.6.0\5.6\msvc2015\bin\qmake.exe - is not make!
    C:\Qt\Qt5.6.0\5.6\msvc2015\bin\qmake.exe - is not cmake (you do not need CMake unless you want to use it).

    "microsoft visual c++ 20015 redistributable" - is not what I asked for. My question is: did you install C++ compiler when you installed VC2015? Can you try to create a simple C++ program in VS2015 and build it?

    If you do not have to use VS2015 you can install Qt for MinGW and MinGW using Qt online installer.
    MinGW is a Windows port of GCC compiler.


  • Moderators

    Did you really install VS2015?
    Do you have "Microsoft Visual Studio 2015" in Control Panel\All Control Panel Items\Programs and Features?
    If so then select it and press "Change" and make sure to install C++.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.