[Interest] Slow compiling on Mac

Michael Jackson imikejackson at gmail.com
Thu Aug 30 17:08:49 CEST 2012


On Aug 30, 2012, at 11:00 AM, Till Oliver Knoll wrote:

> Am 30.08.2012 um 13:09 schrieb Bo Elmgreen <bo.elmgreen at gmail.com>:
> 
>> ..., QtCreator cannot find clang++ :-/ And I cannot find it on my system. Maybe it is because I still have Xcode 3.2.6 installed!?
> 
> Very much likely ;) My book sais that "LLVM 3.0 / Clang" did not become the default until Xcode 4.2 - For Xcode 3.2 gcc was still the default.
> 
> (Which makes me wonder why you mentioned clang in the first place, but anyway).
> 
>> Hmmm - it seems like I need to upgrade to Xcode 4 in order to get clang++ :-/
> 
> Not necessarily: as I mentioned previously you'd need to download and install the "Xcode command line tools" manually anyway (unless you want to extend your PATH to point into the Xcode 4.x application bundle). Usually that is done from within Xcode.
> 
> However I think I once came across an ordinary Apple Developer website which offers those "Xcode command line tools" (as an Installer package) as well. Off course I cannot find it right now (might be that you need to be logged in with your Apple ID, hence that site might not be indexed by Google).
> 
> In case you're not interested in Xcode at all anymore, that is ;)
> 
> Cheers,
>  Oliver

You need to log into the developer.apple.com to download the "Command line tools" for Lion or Mtn Lion. Note that the OS X SDKs do NOT come with these tools. Just the compiler and associate tools. So if you are building anything that needs to link against the OS X SDKS (like Qt..) you still need to install Xcode.

 Note that you can build the Latest Clang yourself. I *think* you need OS X 10.7 to do this though. Not sure on that last one. But again, unless you are building something basically trivial that does NOT rely on the OS X SDK's then you still need to install Xcode.

Just some stuff that I have found out in the last few months.

---
Mike J.




More information about the Interest mailing list