Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Get error in qtdepoly.targets at version 6.6.2 and 6.7

Get error in qtdepoly.targets at version 6.6.2 and 6.7

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 4 Posters 754 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Larry K
    wrote on last edited by Larry K
    #1

    When building a debug and release version with option "Run Deployment Tool" set to "Yes" getting this error:

    1>C:\Users\lpk9012\AppData\Local\QtMsBuild\deploy\qtdeploy.targets(269,5): error MSB4023: Cannot evaluate the item metadata "%(Fullpath)". The item metadata "%(Fullpath)" cannot be applied to the path "Adding in plugin type generic for module: Qt6Gui". The given path's format is not supported.

    Using VS2022 Enterprise 17.9.6

    Works fine with 6.6.1 and before.

    1 Reply Last reply
    0
    • X Offline
      X Offline
      Xiao Yang
      wrote on last edited by
      #2

      yes,i meet this error too.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rawrex
        wrote on last edited by
        #3

        I get the error, too. After running the compilation again it goes away... until the next compilation at which again the recompilation helps temporarily.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Ironpencil
          wrote on last edited by Ironpencil
          #4

          Also happens in 6.6.3

              // Run windeployqt
              // -->
              <PropertyGroup>
                <Cmd><![CDATA["$(QtToolsPath)\windeployqt.exe"]]></Cmd>
                <Cmd>$(Cmd) --list target</Cmd>
                <Cmd>$(Cmd) @(Args->'%(Identity)',' ')</Cmd>
                <Cmd>$(Cmd) @(PosArgs->'%(Identity)',' ')</Cmd>
              </PropertyGroup>
              <Message Importance="high" Text="Qt Deploy: $(Cmd)" />
              <Exec Command="$(Cmd) > &quot;$(QtDeployLog)&quot;"
                    EnvironmentVariables="$(QtDeployEnv)" />
          
              <!--
              ///////////////////////////////////////////////////////////////////////////////////////////////
              // Read deploy log into QtDeployed list
              // -->
              <ReadLinesFromFile File="$(QtDeployLog)">
                <Output TaskParameter="Lines" ItemName="QtDeployed" />
              </ReadLinesFromFile>
              <ItemGroup>
                <QtDeployed Remove="@(QtDeployed)" Condition="!Exists('%(Fullpath)')"/>
              </ItemGroup>
          

          This part in the qtdeploy.targets is the cause.
          Apparently the first few outputs of windeployqt.exe are lines like this:

          Adding in plugin type generic for module: Qt6Gui
          Adding in plugin type iconengines for module: Qt6Gui
          ...
          

          before outputting one .dll/.qm file per line.

              <ItemGroup>
                <QtDeployed Remove="@(QtDeployed)" Condition="!Exists('%(Fullpath)')"/>
              </ItemGroup>
          

          Since this part cant resolve these lines to paths, it throws the error.
          That's the cause, but I'm also not good enough at Visual Studio/Qt magic to work around this.
          Is there a way to inject a step into this targets file to filter the first few lines? Or just skip that step?

          Edit: turns out the "--list target" parameter for windeployqt is specifically there to stop those
          Edit: https://bugreports.qt.io/browse/QTBUG-122257 has been reported and fixed as of 6.8 apparently, so I guess the only fix is going to a newer Qt Version.

          1 Reply Last reply
          0

          • Login

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