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

qmake does not escape path names when writing them into a .vcxproj file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.8.2
    • 4.8.0
    • Build tools: Other
    • None

    Description

      I used qmake to create VC++ 2008 .vproj projects from a .pro file. Everything fine. Then I switched to Qt 4.8.0 and VC++ 2010. I changed my command lines to create .vcxproj files instead of .vcproj files. This worked but VC++ 2010 fails to load the result .vcxproj files by a parsing error.

      I had a look on the .vcxproj's XML code and I think I found the problem. My .pro contains additional include paths. One of those paths (of an external library) uses a folder name "Headers & Libs". This folder name is copied into the .vcxproj result file. However the character "&" is a reserved character in XML and cuases the VC++ parser to bail out.

      I think this is a nasty qmake bug. qmake should escape any strings bevore copying them into XML!

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            silicomancer Bernhard Lindner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes