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. QtCreator on OSX - qmake always producing a Makefile targeting 10.7 instead of 10.9

QtCreator on OSX - qmake always producing a Makefile targeting 10.7 instead of 10.9

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 590 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.
  • V Offline
    V Offline
    VRHans
    wrote on last edited by VRHans
    #1

    I'm trying to link to a 3rd party library on OSX that was built and linked for OSX 10.9.

    Apparently qmake is generating a min version of OSX of 10.7.

    I have tried changing this via my *.pro file with:

    QMAKE_CXXFLAGS += -mmacosx-version-min=10.9
    LIBS += -mmacosx-version-min=10.9

    (I don't know if the LIBS specifier does anything but somebody else who had this problem a long time ago had this in theirs so what the hell. I tried without it and same issues.)

    I have also tried editing the Qbs for the Clang 64-bit kit and changing the kit profile 's cpp.minimumOsxVersion key from 10.7 to 10.9.

    It replaced the original key, and it shows "10.9" in red (presumably to show that I'd customized it.)

    No matter what I do the resulting qmake Makefile specifies the minimum version as 10.7 - literally this is in the makefile everywhere: "-mmacosx-version-min=10.7"

    If I go and hand edit the Makefile and change all the 10.7 instances to 10.9, everything builds just fine. But I can't merge code that has to be hand edited...

    What am I missing?

    Thanks.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRHans
      wrote on last edited by VRHans
      #2

      BTW, I've gotten past this by removing 5.6 and installing 5.7; ergo, it may have been the new QtCreator, or some other aspect of the tool chain - or I may have been able to resolve it by removing 5.6 and re-installing 5.6 (I'll never know...)

      Some day when I'm not working on a Saturday I'll try out changing it to another version and seeing how well that works in the Makefile (but not today.)

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

        Hi,

        If you want to change the deployment target, you can use QMAKE_MACOSX_DEPLOYMENT_TARGET.

        Hope it helps

        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