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. Multiple dylib versions created
QtWS25 Last Chance

Multiple dylib versions created

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 452 Views
  • 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.
  • K Offline
    K Offline
    KarthikGr
    wrote on last edited by
    #1

    Why multiple versions of dylibs are created in Mac and I had to include 2 different versions of dylib to make it work in another application.Where if i include one , it asks for another version?

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

      Hi and welcome to devnet,

      What library are you talking about ?
      What versions ?
      What are you trying to do ?
      What version of macOS ?
      What version of Qt ?
      What version of Xcode ?

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

      K 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        What library are you talking about ?
        What versions ?
        What are you trying to do ?
        What version of macOS ?
        What version of Qt ?
        What version of Xcode ?

        K Offline
        K Offline
        KarthikGr
        wrote on last edited by
        #3

        @SGaist Hi, I wanted to create a dynamic library in mac using Qt Libraries project option.
        So, When write a sample code and build it. It Creates more than one version like: -
        libSample.1.0.0.dylib
        libSample.1.0.dylib
        libSample.1.dylib
        libSample.dylib
        My Question is why it created these 4 different versions of same library and when I integrate libSample.1.0.0.dylib this in an other application, It builds but asks for libSample.1.dylib for complete execution of my application which integrates this sample library i created.

        I am using Qt creator 4.10.2 based on Qt 5.13.2 (Clang 10.0 (Apple), 64 bit) and using Xcode 9.
        i am using macos 10.14.3

        Thanks in advance.

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

          That's how library numbering is working in Unix style OSs. Same goes for Linux with their .so files.

          This allows you to link to a more or less precise version of a library. The numbers are major/minor/patch. You usually link to the unnumbered version but if you need some specific version because of some specific behavior that has changed, you can link using the version number.

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

          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