Cannot install
-
Hi,
Newcomer question: I've tried installing QT, on my Windows 10 laptop, using the online installer.
But the installer shows the following error message:
'Failed to connect to server. Check your network connection and try again.'
My connection is fine, I used it to download the installer.
I've tried all the proxy selections in the installer Settings, including manually entering our corporate LAN proxy settings.
I've also tried turning off our corporate LAN proxy, and connecting to web via phone WiFi instead.
Lastly I've tried re-downloading the online installer. And rebooting, But to no avail.
Know of any workaround, or something to try ?
The QT website suggested the online installer for Windows. Should I try the offline installer instead ?
I see that would limit me to commercial development only, whereas the online installer allows commercial or open source, if I understood correctly. I would like to try open source at least initially ?
Thank you for any help that someone can provide ?Best regards,
David King
-
Hi and welcome to devnet,
The offline installer is available for OpenSource development as well.
Did you try changing the mirror used by the installer ?
-
Hi SGaist,
Many thanks for the quick reply
Ah I stand corrected that the offline installer allows also open source development
You mentioned changing the mirror used by the online installer
Hmm I'm afraid I don't understand - in the installer there is a Repositories tab - something to try there ?
The online installer itself I downloaded from https://www1.qt.io/download-open-source/
There's a mirror location I could try downloading from instead ?Best regards,
David
-
Hi,
A bit of an update: The online installer has worked fine on my Windows 7 32-bit laptop. Just to mention, in case that gives a clue at all, why it is not working on my Windows 10 64-bit laptop. I wonder if the problem might be something to do with the latter being a corporate machine, and it is blocking QT from installing. Our company uses an Active Directory domain logon, just in case that gives a clue.
On the Windows 7 laptop, no such error message, and QT installs OK, I think. Could someone please tell me, if this is 'normal':
In Examples, the dropdown is empty. And 'Search in Examples..' gives nothing. When I installed QT, I just accepted the defaults. I didn't change anything.
Also, if I try creating a 'Qt Quick Application - Swipe', it goes OK until the Kits step, when it reports 'No valid kits found.' When I click the blue underlined options, it shows under Manual, just 'Desktop (default)', though that has a red
-
exclamation mark icon to the left of it. I don't know if that is good / bad / normal / the cause of the problem. Can anyone suggest workarounds for the Kits step problem ?
Many thanks,
David
-
It means that there's something wrong. Usually a missing Visual Studio C++ compiler installation when installing the MSVC package.
-
Hi @David-King:
exclamation mark icon to the left of it. I don't know if that is good / bad / normal / the cause of the problem. Can anyone suggest workarounds for the Kits step problem ?
Can you show us the screens "Kits", "Qt Versions", "Compilers" and "Debuggers" from Tools -> Options -> Build&Run?
As @SGaist said, this is most likely a configuration problem.
-
Sure. I'll do this evening, when I'm back in front of my Windows 7 32-bit laptop.
But I think it might be due to not having any copy of MSVC installed.
And/or not ticking instead in the installer, MinGW.
If so, I guess a typical newcomer error in not doing something obvious !Meanwhile, any thoughts on no Examples showing ?
Or the 'Failed to connect to server. Check your network connection and try again.' error on trying to install on Windows 10 64-bit laptop ?
I just tried again, on wired LAN connection at work, same story, per attached screenshot.
I have Admin rights on the PC, and I'm logged on to QT Forum when I run the installer, in case either of those factor.
Should I try the offline installer instead ?
Or the mirror suggestion (not sure what is) from SGaist ? -
@David-King said in Cannot install:
Sure. I'll do this evening, when I'm back in front of my Windows 7 32-bit laptop.
But I think it might be due to not having any copy of MSVC installed.
And/or not ticking instead in the installer, MinGW.A Kit is a combination of (1) a version of the Qt libraries and (2) a compatible compiler. If one of these is missing, then your kit will be invalid and unusable.
If so, I guess a typical newcomer error in not doing something obvious !
Don't be too hard on yourself; things aren't always immediately obvious.
Meanwhile, any thoughts on no Examples showing ?
There's a drop-down menu to the left of the "Search in Examples..." box. This is where you select a kit for its examples.
I'm not 100% sure, but IIRC, invalid kits aren't shown. That means, if you have no valid kits, you won't see any examples.
Or the 'Failed to connect to server. Check your network connection and try again.' error on trying to install on Windows 10 64-bit laptop ?
I just tried again, on wired LAN connection at work, same story, per attached screenshot.
I have Admin rights on the PC, and I'm logged on to QT Forum when I run the installer, in case either of those factor.
Should I try the offline installer instead ?
Or the mirror suggestion (not sure what is) from SGaist ?I haven't seen this before. However, this section comes before the part that's affected by the mirror selection that @SGaist mentioned, so don't worry about the mirrors for now.
What happens if you temporarily disable your firewall?
Should I try the offline installer instead ?
Yes, that's a valid way to work around the connection issue.
@David-King said in Cannot install:
I wonder if the problem might be something to do with the latter being a corporate machine, and it is blocking QT from installing. Our company uses an Active Directory domain logon, just in case that gives a clue.
It's possible that your corporate machine has policies in place that block the connection, but I can't think of how. AFAIK, the online installer uses standard HTTP and HTTPS ports only.
it reports 'No valid kits found.' When I click the blue underlined options, it shows under Manual, just 'Desktop (default)'
If Qt installed correctly, you should see something under "Auto-detected". It looks like something went pear-shaped during installation. Do you remember seeing any pop-up messages? Can you post the contents of
InstallationLog.txt
?Also, I don't think you should see anything under "Manual" unless you added it yourself.
though that has a red exclamation mark icon to the left of it. I don't know if that is good / bad / normal / the cause of the problem. Can anyone suggest workarounds for the Kits step problem ?
The red exclamation mark indicates that there's something wrong with your kit. Hover your mouse cursor over the exclamation mark too see an explanation.
-
Hi JKSH,
Thank you for all the answers - much appreciated.
All understood about kits - once I have a valid kit (by having MSVC or MinGW), I'll see if I get some Examples.
About install fail on Win10-64, I've disabled firewall (infact we have Symantec Endpoint Protection, I fully disabled that, firewall+virus). But no change to QT installer error.
In due course, I'll try offline installer instead..About the Win7-32 laptop, I'll don't have beside me presently, so will check later and report back.
But yes, there is an Auto-detected entry, and under a Manual entry, with Desktop (default) subentry.
No pop-up messages on install. I'll post the InstallationLog.txt. And hover the red exclamation mark.Many thanks,
David
-
Small update: I tried online installer also on Win7-32 desktop, likewise connected via wired LAN to corporate network, same error.
Including with trying all the proxy settings. Unfortunately that PC doesn't let me disable Symantec Endpoint Protection to try. -
@David-King said in Cannot install:
Small update: I tried online installer also on Win7-32 desktop, likewise connected via wired LAN to corporate network, same error.
Including with trying all the proxy settings. Unfortunately that PC doesn't let me disable Symantec Endpoint Protection to try.Is that the same 32-bit laptop as the one with missing examples?
Anyway, if I've understood you correctly, this is your situation: 2 separate machines are unable to connect to the Qt installer servers through your corporate network, and disabling the firewall (on the 64-bit laptop) didn't help.
It seems to me that something in your company's network (outside your laptops) is preventing the connection. I can think of 3 possible paths to take:
- Use the offline installer
- Talk to your IT department to see if they know which security policy could be causing this, and then go from there
- (If permissible) Connect your laptop to your home network and run the online installer
-
Hi JKSH,
It's a different machine actually. And apologies, I should have written Win7-64 desktop, not Win7-32 desktop.
The machine on which I managed to install QT with online installer, but missing the examples, is a Win7-32 laptop.
Significantly I think, it lacks the Active Directory logon and corporate security policies, and is not connected to the
corporate wired LAN.Your understanding us entirely correct. I think, I'll try path 1 next. Path 3 I tried already with the Win10-64 laptop,
and that failed with the same error.Best regards,
David
-
Hi JKSH,
I'm pleased to report that I successfully installed Qt - using the offline installer.
So I guess a workaround, rather than a solution - I'll now quiz our IT people why the online installer fails with that error, and let you know if they have some insights.
With the offline installer, I selected everything, as I wasn't quite sure what I would need, and was leaving the PC to install overnight anyway - that's on the Win10-64 laptop.
Just to let you know, the offline installer did error as below, a few minutes into the install - but I could click Ignore, to continue OK.Best regards,
David
-
@David-King I'm not sure what that error dialog means, but I'm glad to hear that you're up and running. Happy coding!
-
Hi JKSH,
Many thanks. Yes I seem to be underway now, after a few hurdles per posts.
About the dialog, I guess it means there's a glitch in the Strawberry Perl component of the installer, the offline one at least.
Just mentioning really, so Qt can remedy. But perhaps I should post that elsewhere.Seen on two PCs now. About 30 mins into the install. Retry fails, clicked a few times. But Ignore allows installer to continue.
It's an odd one, as despite what the error dialogue says, the file is there, all looks to spelled right:
Perhaps it's an issue again with our corporate security policy, infact blocking launch of that msi installer.
I don't actually know what SP is mind, and have never done Perl coding :-)
I thought I would leave the installer running overnight and select everything, including SP, not knowing quite what I would need as a newcomer :-)Many thanks for the help,
David