Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
2.7.2, 2.9.1 (rev.06)
-
None
-
-
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.