Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Always Embed Swift binaries in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Always Embed Swift binaries in Qt Creator

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 496 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SyntaXS Offline
    SyntaXS Offline
    SyntaX
    wrote on last edited by
    #1

    I am integrating the Helpshift API into my Qt / QML Application and having some problems, setting everything up only in the Qt Creator / Project.

    Because I am using no swift code, I need to follow the given instructions, mentioned from the Helpshift developer info:

    If your app does not contain any swift code, follow the additional steps:
    - Set Always Embed Swift binaries in the build settings to YES
    - Add /usr/lib/swift to the runpath search paths in the build settings. Make sure it is above the $(inherited) and @executable_path/Frameworks flags
    - Add $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) for Xcode 11.x or $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) for Xcode 10.x to the Library Search Paths in the build settings.
    

    A was able to follow all this steps in the generated Xcode project, but I was wondering, if there is any way to integrate this in the Qt Creator?
    Otherwise it is kind of troublesome, because everytime I recompile the project from inside the Qt Creator, a new Xcode project file is generated and I have to do the setup again :/

    Is anybody out there, who could help me with these or at least point me in any helpful direction?
    I have the feeling, that such cross-compilation settings are not very well documented, or at least, I did not found something anywhere near those informations.

    best regards,
    SyntaX

    1 Reply Last reply
    0
    • SyntaXS Offline
      SyntaXS Offline
      SyntaX
      wrote on last edited by
      #2

      I managed to include the path to swift libraries as dir with the following flags in my .pri file:

      # set additional Library directory for swift support
      QMAKE_LIBDIR += \
           /usr/lib/swift \
      
      # adding "Runtime Search Paths" for swift support
      QMAKE_RPATHDIR += \
           /usr/lib/swift \
      

      "Always Embed Swift binaries" seems not to be needed, my app compiles and is executable.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved