-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Notify Qt installation for QtCreator autodetection #448
Comments
Autodetection of Qt versions and tools is not something that aqt attempts to accomplish. For the most part, aqt simply downloads archives from the Qt repo and unzips them; it does nothing to tell QtCreator where to find Qt installations or compilers. I think you might be looking for the official Qt graphical installer; it is intended for this kind of thing. If you don't want to use the official installer, you should be able to add kits for mingw manually manually. If you feel strongly that aqt should be able to add kits to QtCreator automatically, and you know how to make aqt do it, I'm sure that @miurahr would welcome a PR. This sounds like a useful feature. I think this might be related to #332. |
Thanks for response. I need to clarify my point of view. Qt Creator has its own autodetection. I was just asking why Qt Versions and Tools are not detected. In the QtCreator Tools->Options->Kits->Compilers - when I clicked on the button Re-detect, then only C-Lang compiler is detected (probably because it is inside of the QtCreator folder): I don't know, how the QtCreator autodetection is working, But probably it will be enough to place the downloaded parts to the right place... Or to set some environment variables.. (PATH?)... Anybody knows how the QtCreator autodetection works? |
No, this sounds outside the scope of
If it's at all helpful, I have a local Qt installation installed with the official installer, and the directory structure looks like this:
In QtCreator, the auto-detect locates the |
@lucky62 Please see a qtscript(installscirpt.qs) inside meta.7z package (for example 6.2.1 mingw) . If you want to realize auto-detection, you should do something similar with the script does. You can find a part
This tells QtCreator about the new installation of gcc and component. |
@miurahr this is not the "auto-detection" - this is the "auto-configuration" and some SDK Tool is required for this. Auto-Detection is directly in the QtCreator. I was looking inside the source code which procedure is called when Re-detect button is pressed - but the code is not very clear to me... |
The SDK Tool should be at |
@lucky62 "auto-configuration" can be a feature request for aqtinstall but if you want to improve QtCreator "auto-detection" as you mentioned, it is not an issue of aqtinstall, isn't it? |
I agree. This is a feature request for aqtinstall. Not a bug. |
I think it would be easy for us to download and unzip the appropriate The only alternative that I see is to re-implement every If we can prove that the Does anyone know how to run a QScript file ( |
installscript.qs calls functions provided by QtIFW, such as binary patching, I think it is not possible to run indenendently of the Qt installer. |
If it’s impossible to run the installscript.qs independently of QtIFW, then the alternative is to rewrite every installscript.qs in Python. IMHO, that approach is unsustainable. I don’t think it’s a good idea to try to implement this feature. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Hello,
I installed Qt and tools using aqtinstall - Exactly mingw810 both 32bit and 64bit.
I started the QtCreator but no Qt versions were autodetected.
So I added manually both versions (by browsing and selecting qmake).
Now QtCreator is reporting the problem: No compiler can produce code for this Qt version.
So it means that also tools are not autodetected and must be added manually.
So question - why the autodetection of Qt versions and Tools is not working?
They are installed on wrong place?
My directory structure (all aqtinstall defaults):

The text was updated successfully, but these errors were encountered: