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

Link missing frameworks/libraries and flags in iOS CMake

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5: Not important
    • Resolution: Duplicate
    • Affects Version/s: 5.5.0
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Environment:
      OSX
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      Qt iOS CMake's users must fix linking errors of type "undefined reference" by adding extra flags.

      Frameworks:

      "-framework UIKit"
      "-framework AssetsLibrary"
      "-framework OpenGLES"
      "-framework Foundation"
      "-framework QuartzCore"
      "-framework CoreFoundation"
      "-framework CoreText"
      "-framework CoreGraphics"
      

      3rd party libraries:

      "z"
      

      Qt libraries (+ debug variant):

      "libqtharfbuzzng.a"
      "libqtpcre.a"
      "libQt5PlatformSupport.a"
      

      Flags (+ debug variant):

      "-force_load libqios.a"
      

      To avoid repetition of this code in every user's application this flags should be added to INTERFACE_LINK_LIBRARIES properties of Qt's targets (like Qt5::Widgets).

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              krf Kevin Funk
              Reporter:
              ruslo Ruslan Baratov
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes