An oldie but a goodie - No kits available.
-
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.