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. Qmake ignoring/stripping the -framework keyword on OSX
Forum Updated to NodeBB v4.3 + New Features

Qmake ignoring/stripping the -framework keyword on OSX

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.2k 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.
  • R Offline
    R Offline
    RogueWarrior
    wrote on last edited by
    #1

    I'm trying to build a Qwt project on OSX and for some reason qmake is stripping out the -framework keyword from any LIBS line in the .pro file.

    For example, if I have
    LIBS += -framework qwt

    The make file LIBS line has qwt but the -framework is missing in front of it thus causing make not to be able to find qwt.

    I've tried adding
    QMAKE_LFLAGS += -F/Library/Frameworks/
    before the LIBS += -framework qwt line but that doesn't help.

    qmake seems insistent on stripping the -framework keyword. I've hacked around it by doing this:
    QMAKE_LFLAGS += -F/Library/Frameworks/ -framework qwt

    Any idea what's wrong?

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

      Hi,

      You should only need to use

      @QT += qwt@

      If you've installed qwt using make install

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

        I think that only works on Qt 5 and later. I'm on 4.8.5. Why? Because I have yet to successfully cross-compile 5.1 for ARM on OSX which works fine on 4.8.5. But I digress...

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

          No it doesn't, I'm using it with 4.8.5

          you might need however to add something like this

          @export QMAKEFEATURES=/usr/local/qwt-6.1.0-svn/features:$QMAKEFEATURES@

          to your .profile or in QtCreator environment variables

          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