Build errors on Xcode (repro-ed in IntroJucer)

Discussion and support for general JUCE issues

Build errors on Xcode (repro-ed in IntroJucer)

Postby TheVinn » Mon Apr 30, 2012 6:12 pm

"CoreFoundation.h" file not found. This is a fresh install of Mac OS X, fresh install of Xcode, fresh clone of the JUCE repository, nothing else:

Screen Shot 2012-04-30 at 10.10.31 AM.png
Screen Shot 2012-04-30 at 10.10.31 AM.png (87.07 KiB) Viewed 736 times
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2976
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Build errors on Xcode (repro-ed in IntroJucer)

Postby jules » Tue May 01, 2012 8:47 am

CoreFoundation is one of the absolute basics, the only ways I can think you'd fail to find it would be if you had no system include paths, or if you hadn't installed an SDK at all.. Either way, you'd be unable to compile anything at all!
User avatar
jules
Fearless Leader
 
Posts: 17229
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Build errors on Xcode (repro-ed in IntroJucer)

Postby TheVinn » Tue May 01, 2012 1:47 pm

jules wrote: Either way, you'd be unable to compile anything at all!


Yes, that's exactly the case!!! WTF? Do I uninstall Xcode and reinstall? Was I supposed to download some SDK also?
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2976
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Build errors on Xcode (repro-ed in IntroJucer)

Postby jules » Tue May 01, 2012 2:32 pm

No idea! When I installed it, everything just worked.. I'm pretty sure the SDK is part of the download, not something you get separately.
User avatar
jules
Fearless Leader
 
Posts: 17229
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Build errors on Xcode (repro-ed in IntroJucer)

Postby dave96 » Tue May 01, 2012 3:19 pm

I very recently (about a month or so) did a completely clean install of Lion & Xcode. I can confirm that it should just work. The only thing I can think of is that for some reason the Cocoa libs aren't being included in the system search path.

Have you tried installing the Command Line Tools (Xcode -> Preferences -> Downloads)? This might add some includes to your paths. Does a new Cocoa based project (that doesn't rely on juce) compile?

I did know someone who had a similar problem with stdio not being found with an Xcode download. Perhaps try just re-installing Xcode if the above doesn't work.
dave96
JUCE UberWeenie
 
Posts: 456
Joined: Sat Dec 27, 2008 9:29 pm

Re: Build errors on Xcode (repro-ed in IntroJucer)

Postby Soilworker » Tue May 08, 2012 5:57 am

Had the same problem. Then I realized I needed to wait for my freshly installed copy of XCode 4.3 to finish downloading all of its components. Click on the iTunes-like status bar at the top and you will get a drop-down full of progress meters showing any currently running background downloads.

Once the downloads were finished, the new Introjucer compiled without incident.
User avatar
Soilworker
JUCE Geek
 
Posts: 42
Joined: Sun May 30, 2010 10:15 am

Re: Build errors on Xcode (repro-ed in IntroJucer)

Postby atom » Tue May 08, 2012 9:01 am

I had a problem yesterday, if you download Xcode, the is the Xcode.app thinggy, you drag it to apps click it, it does some magic and it's read to go (you might thing). I wen inside the Xcode.app and there you will find all the /Developer Framework Lib stuff, you need to link it from there to /Developer to make everything work (i got that yesterday) and Introjucer built fine after that. I don't know if there are any special steps that make all this automagicly, this is what i did yesterday on my new Lion in VM Workstation 8 and the latest downloaded XCode from the web.

And like someone above said i also downloaded the command line tools in the weird iTunes line interface.

Could someone write a simple guide on how to change that toolbar so that it has a build button, and how to get the Release build to appear as a normal app in a specified place, do i need some post build script to copy the result, otherwise it builds the app with some weird names, i really can't get around that new Xcode program.
User avatar
atom
JUCE UberWeenie
 
Posts: 1115
Joined: Thu Feb 15, 2007 11:36 am

Re: Build errors on Xcode (repro-ed in IntroJucer)

Postby Xample » Fri Oct 05, 2012 8:27 pm

Installing / updating the "Preferences > Downloads > Command Line" Tools worked for me
Xample
JUCE Geek
 
Posts: 27
Joined: Tue May 01, 2012 6:17 pm


Return to General JUCE discussion

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests