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

Addin does not unwrap VS variables for MocDirectory, RccDirectory, UicDirectory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      Visual Studio 2019, Win 10
    • Platform/s:
      Windows

      Description

      If i set, for example, MocDirectory(in Qt Project Settings Dialog) to $(IntDir)\GeneratedFiles - I've got this command in my vcxproj file: 

       

      <Command Condition="'$(Configuration)|$(Platform)'=='debug|Win32'">"$(QTDIR)\bin\moc.exe" "%(FullPath)" -o "$(IntDir)\GeneratedFiles\moc_%(Filename).cpp" -DUNICODE -DWIN32 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_DLL -DQT_NETWORK_LIB -D_CRT_SECURE_NO_WARNINGS -DQT_WIDGETS_LIB -DQT_SQL_LIB -D%(PreprocessorDefinitions) "-I$(QTDIR)\include" "-I$(QTDIR)\include\qtmain" "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtXml" "-I$(QTDIR)\include\QtNetwork" "-I$(QTDIR)\include\QtWidgets" "-I$(IntDir)\GeneratedFiles" "-I.\..\..\include" "-I.\..\..\res" "-I.\..\..\..\common" "-I.\..\..\..\common\include" "-I.\..\..\..\..\..\3dparty" "-I$(QTDIR)\include\QtSql" "-fph.h" "-f../../../../src/platform/config_db/include/%(Filename)%(Extension)"</Command>

      "f" option(marked red) - generated erroneous

      my $(IntDir) variable is .\..\..\..\..\..\bin\platform\$(PlatformTarget)\windows_temp\$(Configuration)\$(ProjectName)

      so "f" option must be 

      "-f../../../../../../../src/platform/config_db/include/%(Filename)%(Extension)"

      As result i've got compile errors cos compiler can't find my header!

      The same thing with RccDirectory and UicDirectory..
       

        Attachments

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

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            fsmoke Dmitriy Kostromin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes