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

    • Windows
    • 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 449/450 should be:

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

      line 453/454 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

            mecfc Miguel Costa
            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