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

Moc doesn't start if source path or filename contains space(s)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 3.0.1, 3.0.2
    • None
    • Windows
    • e942e8e3d (dev)

    Description

      Moc fails to start if source path or filename contains space(s) comma(s). For example, if your source file is "C:\Path,to,source\source.h", it will fail.
      The workaround and correction in VS Addin sources is to modify qtmoc.targets by adding some quotes:
      line 426/427 should be:

            <output_relative
      >$([MSBuild]::MakeRelative($(ProjectDir), '%(QtMoc.OutputFile)').TrimStart('\'))</output_relative>

      line 430/431 should be:
       

            <input_relative
      >$([MSBuild]::MakeRelative($(ProjectDir), '%(QtMoc.InputFile)').TrimStart('\'))</input_relative>
      

      This is a regression since it had been corrected in 2.5.1 rev.18.

      Attachments

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

        Activity

          People

            ali.demiralp Ali Can Demiralp
            woazim Benjamin ALBOUY-KISSI
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes