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

qmake generated xcode projects fail if the path name contains space characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.0
    • 4.6.0
    • Build tools: qmake
    • None
    • Mac OS X 1.6.2, Qt 4.6, XCode 3.2
    • 0233e9ec8bc1d65fbbd6be6fa798531a658b9ae2

    Description

      When I create a xcode project from a .pro file the build fails in XCode.

      It happens during the "Qt Qmake" and "Qt Preprocessors" build phases. Problem is that the command in the two build phases fails if the path name has space characters.

      See example:
      /* Begin PBXShellScriptBuildPhase section */
      A0A52A2ADF7A1E2A99738674 /* Qt Preprocessors */ =

      { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); name = "Qt Preprocessors"; runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "make -C /Users/de8olihe/perforce/olimac/EasyBuilder/BrickBuilder 2 -f BrickBuilder.xcodeproj/qt_preprocess.mak"; }

      ;
      D7BA7D76DAB5DD13389D6332 /* Qt Qmake */ =

      { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); name = "Qt Qmake"; runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "make -C /Users/de8olihe/perforce/olimac/EasyBuilder/BrickBuilder 2 -f BrickBuilder.xcodeproj/qt_makeqmake.mak"; }

      ;
      /* End PBXShellScriptBuildPhase section */

      In the "shellScript" variables the path name is "/Users/de8olihe/perforce/olimac/EasyBuilder/BrickBuilder 2".

      Solution:
      I have to wrap the pathname with " to get this problems solved every time I have converter the .pro file in a xcode project!

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              olihey Oliver Heyme
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes