Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error: Qt Creator needs a compiler set up to build
QtWS25 Last Chance

Error: Qt Creator needs a compiler set up to build

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 6.7k Views
  • 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.
  • R Offline
    R Offline
    r5ha
    wrote on last edited by
    #1

    I have Qt Creator 2.7.0 and Windows 7 64bit.
    I'm trying to compile a Hello World C++ program with it, but it looks like Qt Creator can't find my compiler (I'm using Windows SDK as C++ compiler). Building fails with error: "Qt Creator needs a compiler set up to build. Configure a compiler in the kit options". When I go to Tools / Options / Build & Run / Kits and select kit "Auto-Detected Desktop Qt 5.0.2 MSVC2012 64bit (default)", "Compiler" select box is indeed empty, but it's also greyed out (so I can't select it), although "Compilers" tab has 3 auto-detected compilers from Windows SDK.
    Can anybody help me? I googled some solutions for this problem, but all they don't work... ;_;

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Since you selected the MSVC2012 package you have to install Visual Studio 2012. Or change for the MSVC2010 package.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        r5ha
        wrote on last edited by
        #3

        Thank you for the reply!
        How can I change the package? I've got Windows SDK v7.0 installed (with Microsoft C++ compiler v.15.00.30729.01), will it be enough?

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          The version of Qt you download needs to match the compiler that you use.

          [quote author="r5ha" date="1373922194"]Thank you for the reply!
          How can I change the package? I've got Windows SDK v7.0 installed (with Microsoft C++ compiler v.15.00.30729.01), will it be enough?[/quote]Does your SDK contain the 32-bit compiler? If it does, it should work if you download "Qt 5.1.0 for Windows 32-bit (VS 2010...)".Windows SDK 7 comes with the same compiler as MSVC2010.

          Alternatively, if your graphics card supports OpenGL 2.0 or higher, you can download "Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB)" -- this package comes with the MinGW compiler.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved