PDA

View Full Version : Qt 5.7 clang build broken on OS X 10.11.6



klowther
18th September 2016, 01:28
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.

lemoncatyang
18th September 2016, 11:20
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. :(

klowther
19th September 2016, 01:17
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!

jefftee
21st September 2016, 02:20
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.

Dany@Qt
29th October 2016, 22:52
Thanks this fixed problem after update Os Sierra