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

Building Project for iOS with build dir containing "/../" fails

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • e20147d1d0cb02cae1424ae779b8392399fa8b24, 44137dc65ab1121fc360f6f006b7515648f0bae3

    Description

      I'm building a qmake project for iOS where the
      paths for OBJECTS_DIR, MOC_DIR, RCC_DIR and UI_DIR contain "/../".
      compiling produces the following error:

      PhaseScriptExecution Qt\ Qmake ../qtbuild/TestIOS_gen/.obj/TestIOS.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
          cd /Users/macuser/test/build-TestIOS-iphoneos_clang_Qt_5_2_0_ios-Release
          /bin/sh -c \"/Users/macuser/test/build-TestIOS-iphoneos_clang_Qt_5_2_0_ios-Release/../qtbuild/TestIOS_gen/.obj/TestIOS.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh\"
      make[2]: `TestIOS.xcodeproj/project.pbxproj' is up to date.
      
      PhaseScriptExecution Qt\ Preprocessors ../qtbuild/TestIOS_gen/.obj/TestIOS.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
          cd /Users/macuser/test/build-TestIOS-iphoneos_clang_Qt_5_2_0_ios-Release
          /bin/sh -c \"/Users/macuser/test/build-TestIOS-iphoneos_clang_Qt_5_2_0_ios-Release/../qtbuild/TestIOS_gen/.obj/TestIOS.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh\"
      make[2]: *** No rule to make target `/Users/macuser/test/TestIOS/../qtbuild/TestIOS_gen/.moc/moc_qtquick2applicationviewer.cpp', needed by `compilers'.  Stop.
      Command /bin/sh failed with exit code 2
      

      Steps to reproduce:
      1) Create new QML-Application for iOS in QtCreator
      2) add the following to the .pro file:

      DSBUILDDIR = $$PWD/../qtbuild
      
      OBJECTS_DIR = $$DSBUILDDIR/$${TARGET}_gen/.obj
      MOC_DIR = $$DSBUILDDIR/$${TARGET}_gen/.moc
      RCC_DIR = $$DSBUILDDIR/$${TARGET}_gen/.rcc
      UI_DIR = $$DSBUILDDIR/$${TARGET}_gen/.ui
      

      3) compile...

      I can work around this issue by manually editing qt_preprocess.mak in the
      generated xcode project directory.

      Attachments

        For Gerrit Dashboard: QTBUG-35131
        # Subject Branch Project Status CR V

        Activity

          People

            andysh Andy Shaw
            lkdem Ludger Krämer
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes