Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 在windows11中安装QT5.9.9后,vs2022新建QT项目报错
Forum Updated to NodeBB v4.3 + New Features

在windows11中安装QT5.9.9后,vs2022新建QT项目报错

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 674 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    peng jiang
    wrote on last edited by
    #1

    --- qmake(13244): Started C:\QT\QT5.9.9\5.9.9\MSVC2017_64\bin\qmake.exe
    --- qmake(13244): Querying persistent properties

    --- qmake(13244): Exit code 0 (23.48 msecs)
    --- vcvars(10732): C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
    An exception (InvalidOperationException) occurred.
    Message:
    没有与此对象关联的进程。
    Stack Trace:
    在 System.Diagnostics.Process.EnsureState(State state)
    在 System.Diagnostics.Process.EnsureState(State state)
    在 System.Diagnostics.Process.get_Id()
    在 QtVsTools.Core.QMake.OutMsg(Process qmakeProc, String msg)
    在 QtVsTools.Core.QMakeImport.QMakeProcess.Run()

    An exception (QtVSException) occurred.
    Message:
    Error reading VS project settings
    Stack Trace:
    在 QtVsTools.Core.VersionInformation..ctor(String qtDirIn)
    在 QtVsTools.Core.VersionInformation.Get(String qtDir)
    在 QtVsTools.Core.QtVersionManager.GetVersionInfo(String name)
    在 QtVsTools.Wizards.ProjectWizard.ConfigPage..ctor()
    在 QtVsTools.Wizards.ProjectWizard.GuiWizard.<get_WizardWindow>b__12_1()
    在 QtVsTools.Common.LazyFactory.Get[T](Expression1 propertyRef, Func1 initFunc)
    在 QtVsTools.Wizards.ProjectWizard.ProjectTemplateWizard.RunStarted(Object automationObject, Dictionary`2 parameterValues, WizardRunKind runKind, Object[] customParams)

    看起来是环境变量的问题,但是我不明白是哪里出了问题,希望有人能帮我解答一下,谢谢。

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from Installation and Deployment on

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved