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

Link missing frameworks/libraries and flags in iOS CMake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P5: Not important
    • None
    • 5.5.0
    • Build System: CMake
    • None
    • OSX
    • 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

              krf Kevin Funk
              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