Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-511

QtWorkFilePath wrong macro expansion with absolute path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 2.2.1
    • 2.2.0
    • General
    • None
    • 3ac64607f3537417f801fc365b405f1a7d6b63ba

    Description

      In file qt.targets (C:\Users%USER%\AppData\Local\QtMsBuild\qt.targets):

      <QtWorkFilePath>$(ProjectDir)$(IntDir)qt.txt</QtWorkFilePath>

      So, if IntDir is an absolute path, I get an error:

      The command "echo Moc'ing %FILE%...;C:\Qt\5.6\msvc2015_64\bin\moc.exe;"C:\Users%USER%\Source\Repos%PROJECT%\Kernel%FILE%" -o ".\GeneratedFiles\Debug\moc_%FILE%.cpp" "-I.\GeneratedFiles\Debug" "-I.\GeneratedFiles" "-I." "-I.\GeneratedFiles\Debug\." "-IC:\Qt\5.6\msvc2015_64\include\QtZlib" "-IC:\Qt\5.6\msvc2015_64\include" "-IC:\Qt\5.6\msvc2015_64\include\QtCore"  -DQT_DLL -DQT_THREAD_SUPPORT -DQT_CORE_LIB -DUNICODE -DWIN32 -D_WIN32 -DWIN64 -D_WIN64 >> "C:\Users%USER%\Source\Repos%PROJECT%\Kernel\C:\Users%USER%\Source\Repos%PROJECT%!Build\x64\Debug\Kernel\qt.txt"" exited with code 1. Kernel C:\Users%USER%\AppData\Local\QtMsBuild\qt.targets 64

      If I change Intermediate Directory in project settings to relative path, all works fine.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mecfc Miguel Costa
              magist3r Sergei Lopatin
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes