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. Where are Qt5 libs on Mac?
Qt 6.11 is out! See what's new in the release blog

Where are Qt5 libs on Mac?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 2.5k 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.
  • N Offline
    N Offline
    nando76
    wrote on last edited by
    #1

    Hi,
    i try to port my application from linux to macos.
    I use gnu Make no qmake.

    On linux under QT_INSTALL_PATH/5.x/gcc_64/lib are all the libs to link against.

    On my mac i can not find the qt libs. libQt5Core*

    Please could somebody explain me what's going on here?

    Thank you very much.

    Greetings
    Nando

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I think on Mac Qt is shipped as Frameworks. Maybe this entry will help https://doc.qt.io/qt-5/osx-deployment.html

      (Z(:^

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nando76
        wrote on last edited by
        #3

        But somewhere should be the libs from Qt?
        I do not want to deploy the application for now.
        I just want to get it linked and run it locally on my dev machine.

        If i use linker command -lQt5Core like on linux i need to specify where this lib is.
        But when i search inside Qt installation i can not find it for clang (for ios and android the libs exist)...

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          You don't link Mac frameworks with -L or -l, you should do it with -F, clang understands it. Here is some additional info: https://stackoverflow.com/questions/3513907/linking-mac-framework-to-qt-creator

          As mentioned in the article I linked (I know you don't want to deploy, but still that article contains some info that can help you), libs are in: /path/to/Qt/lib/QtGui.framework/Versions/X.Y/QtGui

          (Z(:^

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

            Hi,

            What build system are you using ? Both cmake and qmake abstracts that away so you don't need to care whether Qt is using Frameworks or libraries.

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

            N 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              What build system are you using ? Both cmake and qmake abstracts that away so you don't need to care whether Qt is using Frameworks or libraries.

              N Offline
              N Offline
              nando76
              wrote on last edited by nando76
              #6

              @SGaist
              I have my own Makefiles (gnu Make) and must add libs there somehow.

              1 Reply Last reply
              0
              • sierdzioS sierdzio

                You don't link Mac frameworks with -L or -l, you should do it with -F, clang understands it. Here is some additional info: https://stackoverflow.com/questions/3513907/linking-mac-framework-to-qt-creator

                As mentioned in the article I linked (I know you don't want to deploy, but still that article contains some info that can help you), libs are in: /path/to/Qt/lib/QtGui.framework/Versions/X.Y/QtGui

                N Offline
                N Offline
                nando76
                wrote on last edited by
                #7

                @sierdzio Thank you i will check this.

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

                  Out of curiosity, why ?

                  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