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. MSVC 2015 compiler not recognized for Qt 5.6.0

MSVC 2015 compiler not recognized for Qt 5.6.0

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 11.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.
  • R Offline
    R Offline
    ronic
    wrote on last edited by
    #1

    Hi
    I have recently installed Visual Studio 2015 and want to start using it with Qt 5.6.0 in place of VS 2013.
    Qt Creator finds the 2015 MSVC compilers and shows them in the Compilers tab correctly.
    The Qt Versions tab shows Qt 5.6.0 for MSVC 2015 as auto detected but with the error message "No compiler can produce code for this Qt version. Please define one or more compilers."
    The Qt 5.6.0 for MSVC 2013 version however is fine and works without any problem.

    I found this thread which mentions the same issue at the end but no response to that specific problem.
    Re: Qt 5.6.0 Installing Problem

    Does anyone have any idea what might be causing this?
    Thanks.

    RatzzR 1 Reply Last reply
    0
    • R ronic

      Hi
      I have recently installed Visual Studio 2015 and want to start using it with Qt 5.6.0 in place of VS 2013.
      Qt Creator finds the 2015 MSVC compilers and shows them in the Compilers tab correctly.
      The Qt Versions tab shows Qt 5.6.0 for MSVC 2015 as auto detected but with the error message "No compiler can produce code for this Qt version. Please define one or more compilers."
      The Qt 5.6.0 for MSVC 2013 version however is fine and works without any problem.

      I found this thread which mentions the same issue at the end but no response to that specific problem.
      Re: Qt 5.6.0 Installing Problem

      Does anyone have any idea what might be causing this?
      Thanks.

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @ronic
      You can manage kits manually http://doc.qt.io/qtcreator/creator-targets.html

      --Alles ist gut.

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

        This may be the same issue reported here: http://forum.qt.io/topic/67080/qt-creator-and-ms-c-build-tools/2

        R 1 Reply Last reply
        0
        • MuratUrsavasM Offline
          MuratUrsavasM Offline
          MuratUrsavas
          wrote on last edited by
          #4

          MSVC 14.0 (2015) compiler installation is a bit odd comparing to older versions. I recently installed it with a bunch of unnecessary bloat (around 14GB). I had to install Visual Studio Community Edition 2015 and then activate the C++ compiler with trying to create a C++ project (which triggers another 6GB install on the older 8GB). This is the new way express (free) editions work. I don't know whether the Win SDK installs MSVC2015 properly or not.

          Hope this helps.

          1 Reply Last reply
          0
          • RatzzR Ratzz

            @ronic
            You can manage kits manually http://doc.qt.io/qtcreator/creator-targets.html

            R Offline
            R Offline
            ronic
            wrote on last edited by
            #5

            @Ratzz
            Thanks.
            I tried that and selected what I think is the correct compiler (i.e. compiler "Microsoft Visual C++ Compiler 14.0 (x86)" and Qt version "Qt 5.6.0 MSVC2015 32bit") but the manually created kit still has the error "cannot produce code for the Qt version".

            1 Reply Last reply
            0
            • S synasius

              This may be the same issue reported here: http://forum.qt.io/topic/67080/qt-creator-and-ms-c-build-tools/2

              R Offline
              R Offline
              ronic
              wrote on last edited by
              #6

              @synasius
              Thanks. Not really the same though. Qt Creator does detect the compiler, but it says that it is not the correct compiler for Qt 5.6.0 MSVC2015.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                ronic
                wrote on last edited by
                #7

                I already had Visual Studio Community Edition 2015 installed and have built C++ projects with it so this is also not the problem.

                I have however managed to get it to work by creating a kit manually as Ratzz suggested above, but had to specifically set the mkspec used by the kit as well rather than let it use the default one for the compiler. It seems that Qt Creator thinks that the Microsoft Visual C++ Compiler 14.0 is actually the VC2005 compiler and therefore tries to use the appropriate 2005 mkspec. Even with the mkspec set the kit still shows up as having an error but seems to work.

                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