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

Generated code outside of $(IntDir)

    XMLWordPrintable

Details

    • 9a5dde11b957112f1828ca572347e78873dce32c

    Description

       

      The code files generated by Qt tools (moc, rcc and uic) are created outside of the $(IntDir) if the path of the input file is somewhere above the project directory.
      This seems to be caused by the usage of %(RelativeDir) inside the qt*.props files, as removing it seems to solve the problem. Unfortunately I can't distribute this modification to the other developers in my department, since the files are overwritten at startup.

       

       

      The attached project is a minimal reconstruction of the error. The header file should be placed accordingly to the path used in the vcxproj.

      VS Build output (translated from german):

       

      1>Reading Qt configuration (C:\Qt\Qt5.11.2\5.11.2\msvc2017_64\bin\qmake.exe)
      1>moc ..\..\..\..\..\QtDummy\QtDummy.h
      1>moc_QtDummy.cpp
      1>c1xx : fatal error C1083: File (source) cannot be opened: "..\QtDummy\moc_QtDummy.cpp": No such file or directory
      1>The creation of the project "QtApplication.vcxproj" is finished -- ERROR.
      

       

       

      Attachments

        1. QtApplication.vcxproj
          4 kB
          anoymouserver
        2. QtDummy.h
          0.2 kB
          anoymouserver

        Issue Links

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

          Activity

            People

              mecfc Miguel Costa
              anoymouserver anoymouserver
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes