An oldie but a goodie - No kits available.
-
Hi,
It seems that every time I reinstall Qt, I fall prey to this, but never completely work out how I did it last time.
So, I'm on Windows 10:
The difference between this time and last time is that I have now Microsoft Visual Studio Community (latest version) installed which, I understand, has its own compiler.
As I recall, last time I cheated, and found an offline installer that came with mingW built-in.
I couldn't find it this time, so I tried a separate install of mingW.
This only served to confuse things as it was detecting both but allowing me to use neither.
So, I fully remove the mingW and tried to continue with the previously-installed MS Visual Studio Community.
Still no joy..Here is what I've got:
I'm not sure where the "sysroot" is supposed to point to so I guessed and pointed it to what looked like the path for MSVC one, but after ininstalling/reinstalling it doesn't seem to want to forget or reset this.
Selecting either of these options doesn't do much.
As you can see, both "Desktop" options are greyed-out and so it the check box beside them.I'd really like to try to understand this so that I don't have to ask again or use a cheat like an installer with a pre-bundled compiler.
Can anyone assist?
Thanks.
Uberlinc.
-
Okay, so how do I go about plugging in a compiler so that it works?
-
Can I get it to somehow recognise the compiler that is part of the Microsoft Visual Studio Community that I have installed?
-
Would I be better installing mingGW?
Either way, I am struggling to get it to recognise either of them.
As I mentioned earlier, last time I managed to track down an offline installer that came with a built-in version of minGW.
Would this be preferable? If so, where might I find such an installer?Thank you.
-
-
@Uberlinc You need to install Qt for that compiler.
Which exact Qt version did you install (and I don't mean what "About QtCreator" dialog shows as it is unrelated)?"where might I find such an installer?" - https://www.qt.io/offline-installers
-
@jsulm said in An oldie but a goodie - No kits available.:
@Uberlinc You need to install Qt for that compiler.
So, there is an actual installer that I can find that specifically allows me to use the MSVC C++ compiler that comes with Visual Studio?
Which exact Qt version did you install (and I don't mean what "About QtCreator" dialog shows as it is unrelated)?
This is the offline installer that I downloaded and have been running.
"where might I find such an installer?" - https://www.qt.io/offline-installers
Yes, this is exactly where I found the above offline installer.
I recall that last time I found a repository of other installers somewhere and it was there that I found this one particular installer that appeared to have minGW packaged up with it.
For the life of me, I just cannot seem to find it again.I must be honest, I find it quite surprising (not to mention frustrating) that this question that I see arises often, across multiple platforms and compilers, does not have a simple guide that states "This is what you need, what you need to know, and this is how to plug it all in to make it work." seeing as how it's of critical importance.
Is there anyone across the Qt fraternity who is the Oracle of such knowledge?
Many thanks.
-
@Uberlinc Easiest is to use the online installer. Then you will have Qt Maintenance Tool which you can use to add/remove Qt versions.
If you don't remember what exact version you install then please open QtCreator and check the Kit you want to use - Qt version should be set there.
It is actually easy: Qt is a C++ framework. And because of C++ you can't mix different compilers. That is why Qt Company provides many different Qt binaries. For Windows, for example, there is Qt for MinGW (which is by the way the easiest way to get started with Qt), Qt for MSVC2015, Qt for MSVC2017, ... To use MSVC you of course have to install MSVC by your own as Qt installer can't do that (because MSVC is proprietary).
First decide what compiler you want to use and then install Qt built with that compiler, that's all. -
@jsulm said in An oldie but a goodie - No kits available.:
@Uberlinc Easiest is to use the online installer. Then you will have Qt Maintenance Tool which you can use to add/remove Qt versions.
As noted above, I have long ditched online installers because they consistently fail. I presume that this is due to my internet connection.
If you don't remember what exact version you install then please open QtCreator and check the Kit you want to use - Qt version should be set there.
This is what I see when I go into "Kits":
This is what I see when I go into "Compilers":
No amount or combination of selecting/cloning/adding/removing/click/checkboxing/etc seems to add the kit sufficient to stop getting the error:
It is actually easy: Qt is a C++ framework. And because of C++ you can't mix different compilers.
I'm sorry, but I beg to differ.
If it was indeed easy, we wouldn't still be having this conversation.
Instead, somebody would have said, "Here is a link to a user guide that explains to you, in no uncertain terms, exactly what you need to do to configure this section of Qt."
I'm yet to find one.First decide what compiler you want to use and then install Qt built with that compiler, that's all.
Well, I'd like to run it using the MSVC compiler that comes standard with Visual Studio Community 2019.
If this is not doable, then I am happy to install mingGW, provided I can then configure it to run under Qt.Please answer me this:
- Is this Kits section user configurable?
- Is it better to install Qt with a compiler built-in?
- If the online installer is not an option, is there an easy-to-find repository of offline installers that contain the requisite preset compiler options? (No, https://www.qt.io/offline-installers does not contain this. If it does, can you please point me exactly to where it does?)
Many thanks.
-
@Uberlinc So, you have Microsoft C++ compiler. Do you have Qt for that compiler (you did not show "Qt Versions" tab)?
"Is this Kits section user configurable?" - in general yes, but Microsoft compilers and Kits are autodetected.
"Is it better to install Qt with a compiler built-in?" - it is the easiest way, yes.
"is there an easy-to-find repository of offline installers that contain the requisite preset compiler options" - not for Microsoft C++ compiler. And this is not a Qt issue as these compilers are proprietary and Qt Company can't provide them to you, you have to download them from Microsoft.