-
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:
-
Commits:e93d8f4c2df8cb05bc4ca6edbd09b396c2cbb25b
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>