Can't build application on OS X after updating to the latest version of Qt & XCode



  • I also updated to OS X Sierra. I updated to xcode version 8.0 (and Qt 5.7) and now I'm getting this error when I try to run make after doing a qmake:

    "Qt requires C++11 support"
    #  error "Qt requires C++11 support"
    

    and other ones like:

    unknown type name 'QAtomicOps'
    typedef QAtomicOps<T> Ops;
    

    This is odd since I've got CONFIG += c++14 in my .pro file. I tried setting it to c++11, but it didn't work either.


  • Lifetime Qt Champion

    Hi,

    That's because Qt 5.7 was built against the 10.11 SDK and the upgrade to Xcode 8 nuked that one and installed 10.12.

    As provisorily workaround your can add:

    macx {
        QMAKE_MAC_SDK = macosx10.12
    }
    

    to your .pro file



  • This seemed to have fixed itself now. I don't know why :\

    Thanks anyways.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.