Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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:

    f47d6fa1-68a3-40d5-8c8c-b78013a6444c-image.png

    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:

    879ce9be-9be0-420b-b53b-cc808bd3b48e-image.png

    38bc195c-faf1-497d-a39b-4e66d2bacf16-image.png

    38de11d7-5b1e-4f15-a6dc-8687bd4acfb1-image.png

    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.



  • Hello, could you join a screenshot of what's checked in Qt Maintenance Tool ?



  • Hi,
    Thanks for your reply.

    I've scoured the current window/dialog box, poked around Qt, even Googled it, but found nothing specifically.

    Can you please tell me where I might find the Qt Maintenance Tool?

    Thanks.



  • Had another look, and whilst trying to uninstall to try something else, I got this:

    dd241572-0a6a-422f-8652-1f0981518ba3-image.png

    41a84a6a-e567-4499-9683-5332555f710e-image.png

    and this..

    de206c8b-397c-4718-a021-28cfa4535b55-image.png

    Is this what you're looking for?

    Thanks.



  • Hello,

    Sadly no :)
    Start it, click on "Add or remove components" and take a screenshot of what's checked (aka currently installed Qt modules) in it.



  • When I click on that, I get an error:

    ed62fe7f-404a-4ed1-a06c-fa5d90ccbdbc-image.png

    This is the only place that I can find the option to add or remove components.

    Is there another place?

    Thanks.



  • By the way, you should probably know that I installed this using an offline installer as my internet connection is not reliable enough to use the online installer without consistent failures.


  • Lifetime Qt Champion

    @Uberlinc I think maintenance tool will not work out of the box if Qt was installed using offline installer



  • Okay, so how do I go about plugging in a compiler so that it works?

    1. Can I get it to somehow recognise the compiler that is part of the Microsoft Visual Studio Community that I have installed?

    2. 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.


  • Lifetime Qt Champion

    @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)?

    e23062bc-9de8-49de-be1f-a28248dbf06f-image.png

    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.


  • Lifetime Qt Champion

    @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":
    ecb5aa3c-f915-499e-a8ab-5e06bb2bc6ec-image.png

    This is what I see when I go into "Compilers":

    70b23424-99cb-4a39-b30e-9daa3d29379a-image.png

    No amount or combination of selecting/cloning/adding/removing/click/checkboxing/etc seems to add the kit sufficient to stop getting the error:

    6aa6d662-b02c-421e-9646-f524cef6d536-image.png

    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:

    1. Is this Kits section user configurable?
    2. Is it better to install Qt with a compiler built-in?
    3. 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.


  • Lifetime Qt Champion

    @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.



  • Okay, I'm not sure what that link you included was for.
    It didn't appear to have anything pertaining to our discussion.

    I give up.
    I'll try something else.

    Thank you for your time.


  • Lifetime Qt Champion

    @Uberlinc Was a copy-paste mistake, sorry :-)
    I edited my post.


Log in to reply