Priority: P2: Important
Affects Version/s: 2.5.0, 2.5.1, 2.5.2, 2.6.0, 2.6.0 (rev.07), 2.6.0 (rev.18), 2.7.0, 2.7.1, 2.7.1 (rev.08)
Fix Version/s: 2.7.1 (rev.15)
Environment:Visual Studio 2019, v16.9.2
Windows 10 [Version 10.0.19042.867]
When trying to add Qt Version 5.15.2, it fails with the following log:
My qmake query looks like this:
I played around with this problem and looked at the vstools code.
I found this https://github.com/qt-labs/vstools/blob/3c79e51f3efaad7822873f4fc7b84bbd00de368e/src/qtvstools.core/QMakeConf.cs#L46 .
So I tried to copy the path <QT_INSTALL_PREFIX>/mkspecs/win32-msvc to <QT_INSTALL_PREFIX>/mkspecs/default. After this was done I tried to add the Qt version again and it works.
This leads to the idea that something is wrong when finding the qmakeConf path: https://github.com/qt-labs/vstools/blob/3c79e51f3efaad7822873f4fc7b84bbd00de368e/src/qtvstools.core/QMakeConf.cs#L65
After I added Qt Version I then tried to update a qt version for my solution. And I got another error message: "Error starting qmake process". I searched it in the code and found this https://github.com/qt-labs/vstools/blob/906228326ea42863d1e3a98c11ffc9540239fa62/src/qtvstools.core/VersionInformation.cs#L307 .
It looks like QMakeQuery cannot properly query QMAKE_XSPEC. And that could be a reason why I could not add my qt version.
Hope this will help to resolve the issue.