Qt ain't detecting MSVC compiler
-
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.
-
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.
@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.
-
Qt installer doesn't care you have MSVC installed or not... Just select MSVC kits manually in the component list.
-
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. -
C Christian Ehrlicher moved this topic from General and Desktop on
-
@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.