Qt Tools on VS 2019
-
Hello, first time here, so please be gentle!
An application I'm trying to work with has specified VS 2019 and the QT Tools extension. I've installed ...
VS 2019
Qt5
Qt6
MinGW - to get round the 'can't find G++'I've never been able to configure a version in Qt Tools in VS - initially it wouldn't do G++, but I've installed that, added to path and moved along. Now, I'm getting these errors - below.
Be very grateful for advice as to what I'm doing wrong here, many thanks, Paul
== Qt Visual Studio Tools version 2.7.1 (rev.15)
Initialized in: 684.73 msecs
Main (UI) thread: 257.9 msecs--- qmake(21288): started C:\QT6\6.0.3\MINGW81_64\bin\qmake.exe
--- qmake: Querying persistent properties
--- qmake(21288): exit code 0 (119.8 msecs)--- qmake(21220): started C:\QT6\6.0.3\MINGW81_64\bin\qmake.exe
--- qmake: Working Directory: C:\Users\pf00175\AppData\Local\Temp\ai5nwfab.4lm
--- qmake: Arguments: QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe -o "ai5nwfab.4lm.vcxproj" -tp vc -Wnone "ai5nwfab.4lm.pro"
Info: creating stash file C:\Users\pf00175\AppData\Local\Temp\ai5nwfab.4lm.qmake.stash
QIODevice::write: device not open
QIODevice::write: device not open
--- qmake(21220): exit code 0 (4775.62 msecs)Error reading VS project settings
Stacktrace:
at QtVsTools.Core.VersionInformation..ctor(String qtDirIn)
at QtVsTools.Core.VersionInformation.Get(String qtDir)
at QtVsTools.Options.QtVersionsPage.SaveSettingsToStorage()
--- qmake(10060): started C:\QT5\5.15.2\MINGW81_64\bin\qmake.exe
--- qmake: Querying persistent properties
--- qmake(10060): exit code 0 (269.24 msecs)--- qmake(7116): started C:\QT5\5.15.2\MINGW81_64\bin\qmake.exe
--- qmake: Working Directory: C:\Users\pf00175\AppData\Local\Temp\n52skgce.2z5
--- qmake: Arguments: QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe -o "n52skgce.2z5.vcxproj" -tp vc -Wnone "n52skgce.2z5.pro"
Info: creating stash file C:\Users\pf00175\AppData\Local\Temp\n52skgce.2z5.qmake.stash
QIODevice::write: device not open
QIODevice::write: device not open
--- qmake(7116): exit code 0 (3097.99 msecs)Error reading VS project settings
Stacktrace:
at QtVsTools.Core.VersionInformation..ctor(String qtDirIn)
at QtVsTools.Core.VersionInformation.Get(String qtDir)
at QtVsTools.Options.QtVersionsPage.SaveSettingsToStorage() -
Hi and welcome to devnet,
If you want to use Qt with Visual Studio 2019, then you have to install the corresponding Visual Studio build of Qt.
You can't mix and match C++ libraries built with MinGW and Visual Studio. Even Visual Studio only recently started to be backward compatible.
-
Thanks for taking the time to help - so I think I therefore need a mvsc version of qt - but I can't find anywhere to download them on the open source side. I can't see an explicit statement from qt, but it seems that if the target platform is windows, then you have to have the commercial license? Would that be true
-
@PaulFortescue said in Qt Tools on VS 2019:
but I can't find anywhere to download them on the open source side. I can't see an explicit statement from qt, but it seems that if the target platform is windows, then you have to have the commercial license? Would that be true
That's wrong, all the versions are available through the online installer. You have to select the correct options that's all.
-
Thanks very much again - that has solved it for me.
my version was buried deep - but I did find it eventually .