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. How to set up MSVC 2017 compiler for Qt with Visual Studio Community 2019?
Forum Updated to NodeBB v4.3 + New Features

How to set up MSVC 2017 compiler for Qt with Visual Studio Community 2019?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 9.0k Views 2 Watching
  • 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.
  • G Offline
    G Offline
    Gertio
    wrote on last edited by Gertio
    #1

    Hi everyone, I have installed QT creator and want to start with a simple cmake project...
    I have also installed Visual studio community 2019 and selected the "MSVC v141 - VS 2017 C++ -x64/-x86- Buildtools (v14.16)" so it is installed alongside the VS 2019 buildtools.
    Now to create a project in QT creator using the "Desktop QT 5.12.6 MSVC2017 64bit" Kit, because the 2019 one is not available for install. QT tells me to select the compiler for this kit, but in the kit settings > C++ compiler > there are only the 2019 compilers and not the 2017 compilers. 2019 ones dont work, it says "might produce not compatible code".
    How can I fix this? why does QT not find the right compilers?

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

      Hi and welcome to devnet,

      AFAIR VS2019 should be backward compatible with 2017 so you should be able to use it with your 2017 build of Qt.

      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
      2
      • G Offline
        G Offline
        Gertio
        wrote on last edited by Gertio
        #3

        No, it does not for me, I have tried all the compilers available (seen in the picture), but Qt accepts none of them.

        qt.png

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The one you have selected in your picture is ok. Don't mind the warning icon. It will work fine.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Gertio
            wrote on last edited by
            #5

            Hmm, did I forget something then? I can not select this kit:

            eceba442-3658-4dd7-8e88-4ccf8fce3856-grafik.png

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

              If you hover over the warning icon, what information do you get ?

              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
              • G Offline
                G Offline
                Gertio
                wrote on last edited by Gertio
                #7

                Got it working now, problem was with cmake, I assumed that it would also use the cmake installed through visual studio installer, but it did not, so I installed separate cmake. now it works.
                The warning Icon shows actually that message "compiler might produce not compatible code". Its still not gone after the cmake installation, but it is possible to select the kit now.
                thank you for replies.

                1 Reply Last reply
                2

                • Login

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