[Interest] OS X and XCode 7.0: 'TargetConditionals.h' file not found

Thiago Macieira thiago.macieira at intel.com
Sat Oct 3 19:29:45 CEST 2015


On Saturday 03 October 2015 13:06:00 Sherif Ghali wrote:
> After clicking on the "Update all" button offered by App Store, XCode went
> up to version 7.0.1 and Command Line Tools went to 7.0. (Big mistake; I
> know.)
> 
> After a fresh `qmake`, now running `make` on
> Qt5.4.2/Examples/Qt-5.4/opengl/legacy/hellogl complains that:
> 
> /usr/local/Qt5.4.2/5.4/clang_64/lib/QtCore.framework/Headers/qsystemdetectio
> n.h:188:12: fatal error: 'TargetConditionals.h' file not found
> #  include <TargetConditionals.h>
>            ^
> 
> Any suggestions? I am using Qt 5.4.2 on 10.10.5 (Yosemite).

Works fine here:

$ xcrun clang -c -M -xc  - <<<'#  include <TargetConditionals.h>'   
-.o: \
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/TargetConditionals.h

The Apple-provided compiler can find it. If yours can't, it's something wrong 
with the compiler.

> I am maintaining /opt/local/bin/g++-mp-4.9 through MacPorts. Might it be
> possible to switch to MacPorts/g++ and avoid relying on the Command Line
> Tools?

Unknown. Please test with the official compiler first. If it doesn't work, 
there's something wrong with your installation.

If it works and your secondary compiler doesn't, please report the issue to 
its maintainers.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list