Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Libs and frameworks
Qt 6.11 is out! See what's new in the release blog

Libs and frameworks

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 3.3k 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.
  • M Offline
    M Offline
    mike4
    wrote on last edited by
    #1

    Hi
    I compile first for OSX later for Linux. Now I do: LIBS += -L/usr/bla ok but anything different for
    OSX frameworks alike libcurl.framework?
    Thanks
    Michael

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      If you use a framework on Mac OS X you need to add:

      @
      LIBS += -F/path/to/framework -framework YourLibrary
      @

      on Linux you will need to change that to

      @
      LIBS += -L/path/to/lib -lYourLibrary
      @

      You can combine everything into nice qmake scopes:

      @
      unix {
      macx {
      LIBS += -F/path/to/framework -framework YourLibrary
      } else {
      LIBS += -L/path/to/lib -lYourLibrary
      }
      }
      @

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mike4
        wrote on last edited by
        #3

        Thanks, now I get ~400 errors when including fstream...so something is c. wrong. Anyone would have time to look into a project from osx to compile on linux? should be very simple but im stuck with errors alike above. thanks for sending me a pm.

        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