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. Building static libs on macOS - post build link questions...

Building static libs on macOS - post build link questions...

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 370 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.
  • C Offline
    C Offline
    chopper
    wrote on last edited by
    #1

    Client applications will clearly need to link to macOS native frameworks (since dynamic libs hide this from client applictions) - and outside of Qt I'm not much of a macOS guy.

    What are the system frameworks that generally need to be added to support QtCore and QtNetwork on macOS?

    I presume those would be combine in QMake via LIBS += -F <framework>?

    Thanks macOS guys/gals :)

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

      Hi,

      What is you exact use case ?

      Your Qt projects already links to everything needed.

      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
      • C Offline
        C Offline
        chopper
        wrote on last edited by
        #3

        Personally I just needed to link to CoreServices and SystemConfiguration.

        # Static builds require direct linking to macOS services
        QMAKE_LFLAGS += -F /System/Library/Frameworks/CoreServices.framework/
        QMAKE_LFLAGS += -F /System/Library/Frameworks/SystemConfiguration.framework/
        
        LIBS += -framework CoreServices
        LIBS += -framework SystemConfiguration
        

        Cheers.

        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