xcode 4.3 vs. introjucer

For Apple specific issues

xcode 4.3 vs. introjucer

Postby kurt6string » Sun Mar 04, 2012 3:29 am

Hi,

I've git cloned the juce tip (with modules), but still can't convince xcode 4.3 to compile introjucer. Any suggesstions?
I'm downloading xcode 3.2 at the moment, hopefully that will get me going.
Bummers, xcode 3.2 crashes, no go. drat.

Thanks,
Kurt
Attachments
xintrojucer.png
xintrojucer.png (246.47 KiB) Viewed 480 times
User avatar
kurt6string
JUCE UberWeenie
 
Posts: 126
Joined: Sun Dec 04, 2011 3:21 am
Location: Kapolei, Hawaii

Re: xcode 4.3 vs. introjucer

Postby jules » Sun Mar 04, 2012 1:48 pm

CoreFoundation is a basic part of the Apple SDKs - sounds like you've not installed Xcode correctly (though I don't know how that's possible)..
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: xcode 4.3 vs. introjucer

Postby kurt6string » Sun Mar 04, 2012 3:47 pm

This version was installed via the app store, one-click install.
I'll see what I can learn and report back.
FYI, I installed it, didn't change anything then loaded the project and said 'Build for Running'
User avatar
kurt6string
JUCE UberWeenie
 
Posts: 126
Joined: Sun Dec 04, 2011 3:21 am
Location: Kapolei, Hawaii

Re: xcode 4.3 vs. introjucer

Postby kurt6string » Sun Mar 04, 2012 3:58 pm

Solved.

The 'Deployment Target' was set to 10.5 - changing it to 10.7 allowed the project to build and run.
That setting is to the right of the big 'orange' graphic.
Perhaps I need to tell xcode to download other deployment targets?
I'm assuming since my os is 10.7 that's all xcode came loaded with?
Attachments
xintrojucer.png
xintrojucer.png (215.03 KiB) Viewed 458 times
User avatar
kurt6string
JUCE UberWeenie
 
Posts: 126
Joined: Sun Dec 04, 2011 3:21 am
Location: Kapolei, Hawaii

Re: xcode 4.3 vs. introjucer

Postby Shlomi » Sun Mar 04, 2012 9:20 pm

This happened to me too today after downloading from the app store, Xcode 4.3 sucks!!
I'm downgrading to 4.2, wasted too much time on this update.
User avatar
Shlomi
JUCE UberWeenie
 
Posts: 395
Joined: Tue Dec 28, 2010 2:06 pm

Re: xcode 4.3 vs. introjucer

Postby kurt6string » Mon Mar 05, 2012 9:57 am

I just had a great success with 4.3 so I'm keeping it!

I had to change the defaul build target from 10.5 to 10.7 on my mac. And had to select the LLVM GCC 4.2 compiler.

Note having used 4.2 I was forced to get familiar enough with 4.3 to build the code.
I still haven't figured out how the hell to make an installable, the documentation defied me and won the war.
One battle at a time...
User avatar
kurt6string
JUCE UberWeenie
 
Posts: 126
Joined: Sun Dec 04, 2011 3:21 am
Location: Kapolei, Hawaii

Re: xcode 4.3 vs. introjucer

Postby jules » Mon Mar 05, 2012 11:06 pm

And had to select the LLVM GCC 4.2 compiler.


You should use the latest LLVM one - it's far faster, and will produce better code.
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: xcode 4.3 vs. introjucer

Postby TomSwirly » Tue Mar 06, 2012 1:13 am

> I had to change the defaul build target from 10.5 to 10.7 on my mac.

Wait - will that generate code that's backward-compatible with 10.5 and 10.6? I imagine only a minority of people's users are on 10.7...
User avatar
TomSwirly
JUCE UberWeenie
 
Posts: 569
Joined: Mon Feb 08, 2010 11:19 pm

Re: xcode 4.3 vs. introjucer

Postby kurt6string » Tue Mar 06, 2012 3:21 am

You should use the latest LLVM one - it's far faster, and will produce better code.


Roger that...Is that the "Apple LLVM compiler 3.1"?

I also found I could target 10.5, 10.6 and 10.7 now - I don't know which initial juce project setting was making xcode 4.3 unhappy but I seem to have found the correct balance now.
User avatar
kurt6string
JUCE UberWeenie
 
Posts: 126
Joined: Sun Dec 04, 2011 3:21 am
Location: Kapolei, Hawaii

Re: xcode 4.3 vs. introjucer

Postby jules » Tue Mar 06, 2012 10:15 am

Wait - will that generate code that's backward-compatible with 10.5 and 10.6? I imagine only a minority of people's users are on 10.7...


The way that Apple encourage you to work is to always use the latest version of the SDK, but to set its "compatibility mode" so that it generates code that'll also run on older OSes. In theory it's a good system, and they've added thunks to emulate some newer functions when the OS doesn't contain them, but the compatibility only goes back a couple of versions so you might still need to keep old 10.5 SDKs around if you need to target really old machines.
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: xcode 4.3 vs. introjucer

Postby Bruce Wheaton » Thu Apr 05, 2012 7:04 pm

You have to go into preferences and download the 'Command Line Tools' package. Without that, you don't have real headers, so you can only use the actual installed system's headers.

Bruce
User avatar
Bruce Wheaton
JUCE UberWeenie
 
Posts: 936
Joined: Thu Aug 17, 2006 1:43 am
Location: Northern California

Re: xcode 4.3 vs. introjucer

Postby jfitzpat » Fri Apr 06, 2012 2:03 am

jules wrote:You should use the latest LLVM one - it's far faster, and will produce better code.


If you are targetting 10.6 and newer, I'd agree. If you are targetting 10.5, both LLVM 3.0 and 3.1 can be problematic. They still don't correctly link some basic runtime calls to the older (10.5) library. I ran into this not too long ago, and there are a couple of long threads about it in the Apple Developer forums.
User avatar
jfitzpat
JUCE UberWeenie
 
Posts: 251
Joined: Tue Jan 10, 2012 6:29 am
Location: Glendale, California

Re: xcode 4.3 vs. introjucer

Postby TomSwirly » Fri Apr 06, 2012 4:13 am

Wow, jfitzpat, you just saved me a lot of grief later this year... I was planning to move to LLVM and would have run into this with my face!
User avatar
TomSwirly
JUCE UberWeenie
 
Posts: 569
Joined: Mon Feb 08, 2010 11:19 pm


Return to MacOSX and iOS

Who is online

Users browsing this forum: Heritrix [Crawler] and 0 guests