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. Compiling Qt 5.6 on MacOSX 10.15.2
Qt 6.11 is out! See what's new in the release blog

Compiling Qt 5.6 on MacOSX 10.15.2

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt mac compile
2 Posts 2 Posters 374 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.
  • cadyC Offline
    cadyC Offline
    cady
    wrote on last edited by
    #1

    Hi all,

    I am fairly new to OSX so please bare with me.

    I am trying to compile an older application that requires qt 5.6 on my Catalina 10.15.2 system. I was able to do this on other systems previously that were on OSX 10.11 and 10.14 but I am struggling with 10.15.
    The final application targets OSX 10.9 +.

    I have :

    • downloaded qt-everywhere-opensource-src-5.6.3 package.
    • updated the qtbase/mkspecs/macx-clang/qmake.conf with:
      QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
    • set MINIMUM_SDK_VERSION of XCode 10.11 (Since I know this worked on the other system)

    The configuration goes fine but when I build, I am mainly getting a bunch of deeper SDK errors in the like of:

    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:412:34: note: 
          expanded from macro 'MacGetCurrentProcess'
        #define MacGetCurrentProcess GetCurrentProcess
                                     ^
    qcocoahelpers.mm:547:6: error: functions that differ only in their return type cannot be overloaded
    void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage)
    
    
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:593:1: note: 
          'CloseComponent' has been explicitly marked deprecated here
    CloseComponent(ComponentInstance aComponentInstance)          __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
    ^
    qcocoahelpers.mm:689:5: error: call to 'qt_mac_drawCGImage' is ambiguous
        qt_mac_drawCGImage(ctx, &rect, image);
    ~~~~ ^
    

    I know that this is officially not supported, but 10.14 wasn't either. Is there a way around it or am I missing something? Apple won't let me install any other older versions of the Command Line Tools, so I am running out of idea.

    Any help would be appreciated, thanks!

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

      Hi
      I not into MacOS so i cant give any hints how to get 10.15 working, however,
      just wanted note that you could use a virtual machine with 10.11/10.14
      and do it that way.

      https://techsviewer.com/install-macos-10-14-mojave-virtualbox-windows/

      This is on windows, but works the same in macOS. (as far as i know)

      Virtualbox is also for macOS so you can do this with no cost. (except a little time)
      but this way you wont ruin your normal setup and its easy to keep for later.

      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