Results 1 to 5 of 5

Thread: Qt 5.7 clang build broken on OS X 10.11.6

  1. #1
    Join Date
    Sep 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Qt 5.7 clang build broken on OS X 10.11.6

    Today I updated my computer to OS X 10.11.6 and Xcode 8.0

    When I went to go and run my Qt project, I get this error:

    /Users/klowther/Qt/5.7/clang_64/lib/QtCore.framework/Headers/qsystemdetection.h:95:12: fatal error: 'TargetConditionals.h' file not found

    It looks like this has happened before on previous OS updates, and the suggest fix is to edit qdevice.pri and changed !host_build:QMAKE_MAC_SDK = macosx10.8 to have the correct OS version

    However, the contents of that file has changed in recent Qt version, and only has GCC_MACHINE_DUMP = x86_64-apple-darwin14.5.0

    I've searched for the "QMAKE_MAC_SDK" string on my machine and can't find any reference to it, so I'm at a loss as to where to go from here. I'm sure this isn't a Qt issue, but I wasn't sure where else to go with it. Any help would be appreciated, thank you.

  2. #2
    Join Date
    Mar 2016
    Posts
    1
    Qt products
    Qt5

    Default Re: Qt 5.7 clang build broken on OS X 10.11.6

    try add
    QMAKE_MAC_SDK = macosx10.12
    in your .pro file.
    It works for me!
    sorry for my poor English, i've try my best.

  3. #3
    Join Date
    Sep 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt 5.7 clang build broken on OS X 10.11.6

    Quote Originally Posted by lemoncatyang View Post
    try add
    QMAKE_MAC_SDK = macosx10.12
    in your .pro file.
    It works for me!
    sorry for my poor English, i've try my best.
    Wow that was easy, thanks!

  4. #4
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt 5.7 clang build broken on OS X 10.11.6

    I generally avoid new XCODE releases for this very reason. Often the fix is very simple as was the case this time, but I generally wait until the next Qt release is provided after a new XCODE version is available.
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

  5. #5
    Join Date
    Oct 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt 5.7 clang build broken on OS X 10.11.6

    Thanks this fixed problem after update Os Sierra

Similar Threads

  1. exteremely slow automoc generation on clang
    By avanindra in forum Qt Programming
    Replies: 5
    Last Post: 24th December 2015, 14:55
  2. Qt with CLang
    By feraudyh in forum Installation and Deployment
    Replies: 2
    Last Post: 1st August 2014, 22:12
  3. Multiple Qt Versions (GCC/Clang) on Mac OS X 10.9
    By tommyziegler in forum Newbie
    Replies: 0
    Last Post: 2nd July 2014, 17:12
  4. Qt 5 build using clang/llvm on Linux
    By faizol in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2012, 05:32
  5. Broken Qt
    By hakermania in forum Installation and Deployment
    Replies: 7
    Last Post: 9th September 2010, 09:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.