Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Dynamic linking library on macbook.
Forum Updated to NodeBB v4.3 + New Features

Dynamic linking library on macbook.

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 1.3k Views 2 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.
  • S Offline
    S Offline
    samdol
    wrote on last edited by
    #1

    Hi,
    I am planning to develop an application which runs on Macbook. What I heard is that Apple does not allow linking library dynamically. Does it mean I have to include 3rd party library statically all the time?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      No, that's wrong. on macOS it's rather the contrary especially if you want to go through the Mac App Store. IIRC, it should rather be one library per "functionality" e.g. network, file IO, etc.

      The static build was a requirement for iOS application before iOS 10 for which they have relaxed that rule.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        No, that's wrong. on macOS it's rather the contrary especially if you want to go through the Mac App Store. IIRC, it should rather be one library per "functionality" e.g. network, file IO, etc.

        The static build was a requirement for iOS application before iOS 10 for which they have relaxed that rule.

        S Offline
        S Offline
        samdol
        wrote on last edited by
        #3

        @SGaist
        Do you mean I have to link 3rd party library dynamically to register on app store for Mac OSX or it does not matter whether linking statically or dynamically?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Like I wrote, AFAIK, dynamic libraries are recommended.

          Note that nothing stops you from linking statically. You'll get a report from the App Store verifiers to tell you whether there's something wrong.

          Note that you also have to take into account the licenses of the libraries you are using and whether static linking has implication like it's the case with Qt.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            Like I wrote, AFAIK, dynamic libraries are recommended.

            Note that nothing stops you from linking statically. You'll get a report from the App Store verifiers to tell you whether there's something wrong.

            Note that you also have to take into account the licenses of the libraries you are using and whether static linking has implication like it's the case with Qt.

            S Offline
            S Offline
            samdol
            wrote on last edited by
            #5

            @SGaist
            I see, Thank you.

            1 Reply Last reply
            0

            • Login

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