Important: Please read the Qt Code of Conduct -

Compiling Qt 5.6 on MacOSX 10.15.2

  • 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:
    • 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/ note: 
          expanded from macro 'MacGetCurrentProcess'
        #define MacGetCurrentProcess GetCurrentProcess
                                     ^ error: functions that differ only in their return type cannot be overloaded
    void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage)
    /Applications/ 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);
    ^ 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!

  • Lifetime Qt Champion

    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.

    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.

Log in to reply