Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Problem configuring compiler in kit

[SOLVED] Problem configuring compiler in kit

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 3 Posters 16.0k 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.
  • P Offline
    P Offline
    PaladinSix
    wrote on last edited by
    #1

    I have a trial installation of MS Visual Studio 2013 premium on my PC. I also have a full (paid) installation of Visual Studio 2005 Standard edition.

    When I installed Qt 5.2.1, Qt Creator autodetected a number of compilers, including the following which which I chose to include in my environment setup:

    -- Desktop Qt 5.2.1 MSVC2010 32-bit
    -- Desktop Qt 5.2.1 MSVC2010 32bit OpenGL
    -- Desktop Qt 5.2.1 MSVC2012 32bit
    -- Desktop Qt 5.2.1 MSVC2012 64bit (default)
    -- Desktop Qt 5.2.1 MSVC2012 OpenGL 64bit
    -- Desktop Qt 5.2.1 MinGW 32but

    In the "Options--> Build & Run --> Kits" dialog, there is a red circle/exclamation point next to each of the above compilers, (except for the MinGW compiler). The popup tooltip for each of the compilers (except MinGW) says:

    "Error: no compiler set in kit"
    "Warning: no debugger set up"

    If I hit the "Manage" button to the right of the "Compiler" edit control, it takes me to the "Compilers" tab of the "Build & Run" dialog where, again, all of the foregoing compilers are listed (although without any kind of warning icon). If I select any of them and hit "Apply", nothing appears to happen.

    In the "Qt versions" tab of the "Build & Run" dialog, when selecting any of these compilers (again, except MinGW), the information listing at the bottom says "No compiler can produce code for this Qt version. Please define one or more compilers."

    I'd like to select the basic MSVC 64-bit compiler for my project, but I'm at a loss as to how or, given the various error messages above, whether it is even possible. If someone can give me some guidance here, I'd appreciate it.

    OS is Win 7 Home Premium, if that is of any relevance.

    Thanks in advance.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      You need to use Qt version that matches your compiler.
      For example for VS2013 you need to install "Qt 5.3.0 for Windows 64-bit (VS 2013)"
      Qt officially supports VS2013 starting from 5.3.0.
      If you prefer to use MinGW then you need to install "Qt 5.3.0 for Windows 32-bit (MinGW 4.8.2)"
      There is no official 64-bit build for MinGW.
      "Here":http://www.tver-soft.org/qt64 you can find unofficial builds of Qt for 64-bit for multiple compilers including MinGW and for VS 2008, 2010

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

        Also pay attention to MSVC version numbers, which can be confusing:
        @
        VC++ 10.0 == MSVC 2010
        VC++ 11.0 == MSVC 2012
        VC++ 12.0 == MSVC 2013
        @

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

        1 Reply Last reply
        0
        • P Offline
          P Offline
          PaladinSix
          wrote on last edited by
          #4

          [quote author="andreyc" date="1401078539"]You need to use Qt version that matches your compiler.
          For example for VS2013 you need to install "Qt 5.3.0 for Windows 64-bit (VS 2013)"
          Qt officially supports VS2013 starting from 5.3.0.
          If you prefer to use MinGW then you need to install "Qt 5.3.0 for Windows 32-bit (MinGW 4.8.2)"
          There is no official 64-bit build for MinGW.
          "Here":http://www.tver-soft.org/qt64 you can find unofficial builds of Qt for 64-bit for multiple compilers including MinGW and for VS 2008, 2010
          [/quote]

          Installing Qt 5.3.0 fixed my issue. I had just installed 5.2.1 a few weeks ago....did not realize a new version had been released.

          Thank you!

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PaladinSix
            wrote on last edited by
            #5

            [quote author="JKSH" date="1401084948"]Also pay attention to MSVC version numbers, which can be confusing:

            VC++ 10.0 == MSVC 2010
            VC++ 11.0 == MSVC 2012
            VC++ 12.0 == MSVC 2013[/quote]

            Thanks. Yes, it is tricky, but I actually was aware that VS2013 uses the VC++ 2012 compiler.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              PaladinSix
              wrote on last edited by
              #6

              Looks like I spoke too fast. Qt found the compiler (which works), but it did not autodetect the MSVC++ 2012 debugger.

              A few minutes of Googling did not yield an answer -- anyone know the file path to the debugger, so I can attempt to add it manually?

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

                It should be at C:\Program Files (x86)\Debugging Tools for Windows (x86)\cdb.exe

                You might need to install Debugging Tools for Windows manually.

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

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  PaladinSix
                  wrote on last edited by
                  #8

                  [quote author="JKSH" date="1401153595"]It should be at C:\Program Files (x86)\Debugging Tools for Windows (x86)\cdb.exe

                  You might need to install Debugging Tools for Windows manually.[/quote]

                  Thanks, yes, I had to manually install (after, of course, getting another infuriating error because the installer had an older version of the VC++ 2010 redistributables. AARGH!!!)

                  But looks like I'm good to go.

                  Thank you everyone for the prompt and helpful answers.

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

                    You're welcome. :) Happy coding!

                    Please edit your original post and add "[SOLVED]" to the title.

                    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