[Development] About the presence of /System/Library/Frameworks/Carbon.framework

Thiago Macieira thiago.macieira at intel.com
Thu Dec 21 12:54:31 CET 2017


On quinta-feira, 21 de dezembro de 2017 04:47:34 CST Konstantin Tokarev wrote:
> > Hi,
> > 
> > Here's a silly one: configuring Qt for building on my Linux rig I was told
> > that I needed Xcode, and how to get it. :)
> > 
> > Long story short, it turns out that the configure script determines
> > whether it's building on Mac by checking if the Carbon framework exists
> > in the designated location. And it turns out that I copied over the
> > entire header dir. structure under /System/Library/Frameworks onto said
> > Linux rig because I use it for cross-platform development.
> > 
> > Apart from the fact that it should probably check for a framework with a
> > more certain future, isn't there a less "rootsy" way of determining
> > whether the script is running on Mac?
> Check uname maybe?

That would tell you the host you're running on, not the target you're 
compiling to.

If your sysroot contains Apple files, it's reasonable to conclude it's an 
Apple system.

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




More information about the Development mailing list