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

Moc fails with changed temp build folder

    XMLWordPrintable

Details

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

    Description

      Hi,

      i have some issues with the plugin when i Change the temporary build Folder (intermediate Folder, in english i think) for my project. I changed it from:

      $(Platform)\$(Configuration)\
      

      to:

      $(SolutionDir)\build\$(ProjectName)\$(Platform)\$(Configuration)\
      

      because i don't want to have alle the files in the project, but in a custom build folder which is linked to a ram drive.

       

      After that Change, the project is not building. With 2.1 it was building. The reason is the moc step with writing the moc output to a "qt.txt" file.

       

      The message is:

      error MSB3721: Der Befehl "echo Moc'ing TestClass.h...;C:\Qt\5.9.3\msvc2017_64\bin\moc.exe;"C:\Source\QtTest\QtTest\TestClass.h" -o ".\GeneratedFiles\Debug\moc_TestClass.cpp" "-I." "-IC:\Qt\5.9.3\msvc2017_64\include" "-I.\GeneratedFiles\Debug\." "-IC:\Qt\5.9.3\msvc2017_64\include\QtCore" -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB  >> "C:\Source\QtTest\QtTest\C:\Source\QtTest\\build\QtTest\x64\Debug\qt.txt"" wurde mit Code 1 beendet.
      

      You can see that the path for the "qt.txt" file is completely wrong. 

       

      I attached a simple project for reproduction of the problem.

       

      Kai

      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
              kai_mildner Kai Mildner
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes