我尝试将版本 6.3.0 添加到 Visual Studio 2022 但我不能这是错误消息
--- qmake(10640): started C:\QT\6.3.0\MSVC2019_64\bin\qmake.exe
--- qmake: Querying persistent properties
--- qmake(10640): exit code 0 (117.3 msecs)
vcvars: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat
cl: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.30.30705\bin\HostX64\x64\cl.exe
--- qmake(9272): started C:\QT\6.3.0\MSVC2019_64\bin\qmake.exe
--- qmake: Working Directory: C:\Users\medoa\AppData\Local\Temp\4t3shk2p.vtb
--- qmake: Arguments: QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe -o "4t3shk2p.vtb.vcxproj" -tp vc -Wnone "4t3shk2p.vtb.pro"
Could not find qmake spec 'win32-msvc'.
Error processing project file: 4t3shk2p.vtb.pro
--- qmake(9272): exit code 3 (48.72 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() in C:\dev\source\qtlabs\vstools\QtVsTools.Package\Options\QtVersionsPage.cs:line 93
这个 qmake -query λ qmake -query QT_SYSROOT: QT_INSTALL_PREFIX:C:/Qt/6.3.0/msvc2019_64 QT_INSTALL_ARCHDATA:C:/Qt/6.3.0/msvc2019_64 QT_INSTALL_DATA:C:/Qt/6.3.0/msvc2019_64 QT_INSTALL_DOCS:C: /Qt/Docs/Qt-6.3.0 QT_INSTALL_HEADERS:C:/Qt/6.3.0/msvc2019_64/include QT_INSTALL_LIBS:C:/Qt/6.3.0/msvc2019_64/lib QT_INSTALL_LIBEXECS:C:/Qt/6.3.0/msvc2019_64 /bin QT_INSTALL_BINS:C:/Qt/6.3.0/msvc2019_64/bin QT_INSTALL_TESTS:C:/Qt/6.3.0/msvc2019_64/tests QT_INSTALL_PLUGINS:C:/Qt/6.3.0/msvc2019_64/plugins QT_INSTALL_QML:C:/Qt /6.3.0/msvc2019_64/qml QT_INSTALL_TRANSLATIONS:C:/Qt/6.3.0/msvc2019_64/translations QT_INSTALL_CONFIGURATION: QT_INSTALL_EXAMPLES:C:/Qt/Examples/Qt-6.3.0 QT_INSTALL_DEMOS:C:/Qt/Examples/Qt-6.3 .0 QT_HOST_PREFIX:C:/Qt/6.3.0/msvc2019_64/bin QT_HOST_DATA:C:/Qt/6.3.0/msvc2019_64/bin QT_HOST_BINS:C:/Qt/6.3.0/msvc2019_64/bin/bin QT_HOST_LIBEXECS:C:/Qt/6.3.0/msvc2019_64/bin/bin QT_HOST_LIBS:C:/Qt/6.3.0/msvc2019_64/bin/lib QMAKE_SPEC:win32-msvc QMAKE_XSPEC:win32-msvc QMAKE_VERSION:3.1 QT_VERSION:6.3.0