Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt ain't detecting MSVC compiler
Qt 6.11 is out! See what's new in the release blog

Qt ain't detecting MSVC compiler

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 5 Posters 1.7k 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.
  • V Offline
    V Offline
    vedansh
    wrote on last edited by
    #1

    My Qt ain't able to detect MSVC 2022 compiler only showing MINGW compiler in installation. I have Visual Studio with MSVC 2022 Latest and have all the necessary configuration like software development in C++etc. Because of frustration i uninstalled Qt and thought while reinstalling it will detect still not showing MSVC in Installation Summary
    and
    I'm using a Window Machine.

    I wanted to link other external libraries with my Qt project but ain't able to link with MinGW.

    Help me Guyz

    I tried to, put Visual Studio paths in Environment Variable, Uninstalled Qt and Reinstalling (present). I also have MSVC compiler in my environment path. And already tried building with qmake and Cmake with MinGW Compiler but no result till now.sdsssxs.PNG

    JonBJ 1 Reply Last reply
    0
    • V vedansh

      My Qt ain't able to detect MSVC 2022 compiler only showing MINGW compiler in installation. I have Visual Studio with MSVC 2022 Latest and have all the necessary configuration like software development in C++etc. Because of frustration i uninstalled Qt and thought while reinstalling it will detect still not showing MSVC in Installation Summary
      and
      I'm using a Window Machine.

      I wanted to link other external libraries with my Qt project but ain't able to link with MinGW.

      Help me Guyz

      I tried to, put Visual Studio paths in Environment Variable, Uninstalled Qt and Reinstalling (present). I also have MSVC compiler in my environment path. And already tried building with qmake and Cmake with MinGW Compiler but no result till now.sdsssxs.PNG

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @vedansh
      I do not use Windows or the Qt installer. But the installer is only going to offer MinGW since it supplies that. It will not offer MSVC as it does not, you have to fetch and install that yourself. Then after Qt installation you will select the MSVC Kit inside Creator to make it use that.

      In summary: MSVC should not be an installation-time thing. Doubtless there are better instructions elsewhere as to how best to set up to use MSVC/VS, but this is a heads up for where you are now.

      1 Reply Last reply
      1
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by Bonnie
        #3

        Qt installer doesn't care you have MSVC installed or not... Just select MSVC kits manually in the component list.

        V 1 Reply Last reply
        2
        • B Bonnie

          Qt installer doesn't care you have MSVC installed or not... Just select MSVC kits manually in the component list.

          V Offline
          V Offline
          vedansh
          wrote on last edited by
          #4

          @Bonnie u mean after installation with current configuration, i manually select msvc ?

          JonBJ Pl45m4P S 3 Replies Last reply
          0
          • V vedansh

            @Bonnie u mean after installation with current configuration, i manually select msvc ?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @vedansh said in Qt ain't detecting MSVC compiler:

            @Bonnie u mean after installation with current configuration, i manually select msvc ?

            Is that not 100% exactly what I wrote?!

            1 Reply Last reply
            0
            • V vedansh

              @Bonnie u mean after installation with current configuration, i manually select msvc ?

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by Pl45m4
              #6

              @vedansh

              Actually if you already know you don't (want to) use MinGW anyway, you don't need to select it at all...
              So when starting QtCreator and configuring your Qt Compiler Kit MSVC should be auto-detected and probably shows up in the list.
              As @JonB and @Bonnie have written, MSVC is not listed in the Qt Maintenance Tool / Installer. Never.


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
              • V vedansh

                @Bonnie u mean after installation with current configuration, i manually select msvc ?

                S Offline
                S Offline
                SimonSchroeder
                wrote on last edited by
                #7

                @vedansh said in Qt ain't detecting MSVC compiler:

                u mean after installation with current configuration, i manually select msvc ?

                This doesn't work. Libraries compiled with MinGW cannot be used with MSVC. You need to specifically install the Qt libraries for MSVC and not the ones for MinGW. This has nothing to do with compiler detection. There is no compiler detection at installation time (only within QtCreator). Select what you want, i.e. Qt libraries for MSVC, manually during installation. Don't install the libraries for MinGW and certainly don't install MinGW itself if you don't want to use it.

                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