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. Can't build application on OS X after updating to the latest version of Qt & XCode
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 715 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.
  • C Offline
    C Offline
    cuddlykittens11
    wrote on last edited by
    #1

    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.

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

      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

      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
      1
      • C Offline
        C Offline
        cuddlykittens11
        wrote on last edited by
        #3

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

        Thanks anyways.

        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