Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
4.5.2
-
None
-
Windows
Visual Studio
Description
Create a .pro file in a directory (or sub-directory of a directory) that contains the space in its name. For example: "D:\my projects\project1\". Use qmake to generate the VisualC++ project file. The project file will now contain:
<File RelativePath="myfile.h"> <FileConfiguration Name="Debug|Win32"> <Tool Name="VCCustomBuildTool" AdditionalDependencies="myfile.h;c:/qt/4.5.2/bin\moc.exe" CommandLine="c:/qt/4.5.2/bin\moc.exe ... myfile.h -o D:\my projects\project1\moc\moc_variantobject.cpp" Description="MOC myfile.h" Outputs="D:\my projects\project1\moc\moc_variantobject.cpp" Path="c:\qt\4.5.2\bin"/> </FileConfiguration>
note that in "CommandLine":
-o D:\my projects\project1\moc\moc_variantobject.cpp
should be quoted, in order to work. I.e.:
-o "D:\my projects\project1\moc\moc_variantobject.cpp"