Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why macOS app requests exactly 5.dylib libraries?
Forum Updated to NodeBB v4.3 + New Features

Why macOS app requests exactly 5.dylib libraries?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 512 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.
  • D Offline
    D Offline
    developer23
    wrote on last edited by
    #1

    Hi!

    After building application in macOS I searched its dependencies by otool -L. Command result is equal to target link libraries' list, but Qt libraries have 5.dylib extension in it instead of .dylib.

    Why it's happended in this way?

    Maybe it's common way to handling with dependencies. Then how CMake know so need to add to rpath 5.dylib libraries?

    Thanks for your help.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I would guess it's somewhere deep inside the FindQtFOO.cmake modules where this is defined. But why do you want to change it/what's your problem with this? You can not mix Qt5 and Qt6 so linking against .5.dylib is perfectly fine.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

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

        Hi,

        It's not appended, that's the version of the library. It works in a similar fashion as the so files on Linux.

        It allows to differentiate between major versions so you don't unexpectedly mix incompatible versions.

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

        D 1 Reply Last reply
        2
        • Christian EhrlicherC Christian Ehrlicher

          I would guess it's somewhere deep inside the FindQtFOO.cmake modules where this is defined. But why do you want to change it/what's your problem with this? You can not mix Qt5 and Qt6 so linking against .5.dylib is perfectly fine.

          D Offline
          D Offline
          developer23
          wrote on last edited by developer23
          #4

          @Christian-Ehrlicher I just woder why exactly this extension required but, for example, not 5.15.dylib.

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            It's not appended, that's the version of the library. It works in a similar fashion as the so files on Linux.

            It allows to differentiate between major versions so you don't unexpectedly mix incompatible versions.

            D Offline
            D Offline
            developer23
            wrote on last edited by
            #5

            @SGaist so there is some naming convention. Do you khow some references to read?

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

              There's a whole article on the subject in Apple's documentation under Dynamic Library Design Guidelines.

              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
              2

              • Login

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