Qt 5.12.12 install not finding any compilers on Win 10, fails to make useful Kits
-
I need to figure out how to build a 64-bit app for Windows using Qt 5.12.12.
I can already easily build such apps for 64-bit Ubuntu and Mac using Qt 5.12.12.
I use QtCreator for my IDE; it makes configuring with the Kits on Mac and Linux so easy when I open my .pro file.
I'm wondering what MS developer product to install on my Win 10 VM. Then I can install Qt 5.12.12. It would be best if Qt 5.12.12 could easily locate the compilers and make Kits for me, so it's easy to configure/build my app when I open the .pro in QtCreator on Windows.
Thanks in advance for your ideas.
-
@VStevenP said in Qt 5.12.12 install not finding any compilers on Win 10, fails to make useful Kits:
I'm wondering what MS developer product to install on my Win 10 VM. Then I can install Qt 5.12.12. It would be best if Qt 5.12.12 could easily locate the compilers and make Kits for me, so it's easy to configure/build my app when I open the .pro in QtCreator on Windows.
If you want MS compiler, install Visual Studio, for example VS 2022. Then install Qt (make sure to select MSVC variant) and it will be detected and working.
Alternatively, you can select MinGW version of Qt and then the Qt installer will install both Qt and the compiler for you.
-
Thanks for your reply, @sierdzio !
I just want to double-check that VS 2022 would be the right thing to install, because I just noticed the Qt 5.12.12 installer lists the MSVC 2017 and 2015 specifically. In my experience with these large OS companies, the newer dev tools versions don't always retain the older compilers.
-
OK - I installed MS VS2017 Professional and made sure to choose the right things. Now, the MSVC 2017 64-bit compiler and MinGW 64-bit compiler are both installed correctly.
I then installed Qt 5.12.12 and it made Kits for both compilers, which is great. I was able to easily configure and build one of their examples, then verify it built a 64-bit app - by checking in the TaskManager.
Thank you !