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

Incompatibility between MacOS Framework build and Precompiled Header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 4.8.4, 5.2.0
    • Build tools: qmake
    • None
    • MacOS
    • macOS

    Description

      I try to compile a library as framework using Precompiled Header.

      Probleme , precompiled header create a directory "ProjectName"
      Step latter: building of framework use "ProjectName" as file... but it's a directory already used

      CONFIG += precompile_header
      PRECOMPILED_HEADER = ../sources/StdAfx.h ####it is a precompiled headear file

      FRAMEWORK_HEADERS.version = Versions
      FRAMEWORK_HEADERS.files = $$INCLUDE_HEADERS
      FRAMEWORK_HEADERS.path = Headers
      QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS

      Build Outptut:

      rm: DasHardDevKit: is a directory
      make: [DasHardDevKit.framework/DasHardDevKit] Error 1 (ignored)
      ld: can't open output file for writing: DasHardDevKit, errno=21 for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make: *** [DasHardDevKit.framework/DasHardDevKit] Error 1
      08:39:42: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project DevKit (kit: Desktop Qt 5.2.0 clang 64bit)
      When executing step 'Make'

      WorkArround:
      Disable precompiled header seems working

      Tested with the both Qt version I have on my machine Qt5.2.0 Qt4.8.4)

      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ø
              florent@lightingsoft Florent Fortin
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes