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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.5.1 (rev.18), 2.5.2
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      e93d8f4c2df8cb05bc4ca6edbd09b396c2cbb25b

      Description

      Moc fails to start if source path or filename contains space(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 379/380 should be:

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

      line 383/384 should be:

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

       

        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:
            woazim Benjamin ALBOUY-KISSI
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes