Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Qt creator needs a compiler

    General and Desktop
    qt5.6 qt creator msvc2015 compilers path compilers
    2
    5
    5213
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      neda last edited by neda

      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.

      1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        "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).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        N 1 Reply Last reply Reply Quote 1
        • N
          neda @jsulm last edited by neda

          @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"

          1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion last edited by jsulm

            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.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • jsulm
              jsulm Lifetime Qt Champion last edited by

              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++.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 1
              • First post
                Last post