Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7343

qmake doesn't handle spaces correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 4.5.2
    • Build tools: qmake
    • 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 &quot;D:\my projects\project1\moc\moc_variantobject.cpp&quot;

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            doos Johny Doos
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes