Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77454

duplicated project items in generated vcxproj file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.4
    • Build tools: qmake
    • None
    • Windows

    Description

      How to reproduce

      • copy qtbase\examples\widgets\painting somewhere
      • run qmake -tp vc -r in the copied directory
      • run devenv painting.sln /build Release or load gradients\gradients.vcxproj in VS

      We get the following errors:

      D:\playground\painting\affine\affine.vcxproj : error  : Cannot load project with duplicated project items: xform.cpp is included as 'ClCompile' and as 'None' item types.
      
      
      D:\playground\painting\composition\composition.vcxproj : error  : Cannot load project with duplicated project items: composition.cpp is included as 'ClCompile' and as 'None' item types.
      
      
      D:\playground\painting\deform\deform.vcxproj : error  : Cannot load project with duplicated project items: pathdeform.cpp is included as 'ClCompile' and as 'None' item types.
      
      
      D:\playground\painting\gradients\gradients.vcxproj : error  : Cannot load project with duplicated project items: gradients.cpp is included as 'ClCompile' and as 'None' item types.
      
      
      D:\playground\painting\pathstroke\pathstroke.vcxproj : error  : Cannot load project with duplicated project items: pathstroke.cpp is included as 'ClCompile' and as 'None' item types.
      

      The reason being that e.g. gradients.cpp is a compiled C++ source file and also in gradients.qrc resulting in having the file twice in the project under different item types.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes