On May 1, 2011, at 13:37:40, Jamie Zawinski wrote:
> Downloaded Growl-1.2.1-src.tbz, opened GrowlTunes.xcodeproj in XCode 3.2.6 on 
> MacOS 10.6.7 x86_64.  "Build" gets me:
> 
> Ld 
> build/GrowlTunes.build/Debug/GrowlTunes.build/Objects-normal/ppc/GrowlTunes 
> normal ppc
> cd /Users/jwz/Desktop/Growl-1.2.1-src/Extras/GrowlTunes
> setenv MACOSX_DEPLOYMENT_TARGET 10.5
> …
> 
> ld: warning: in 
> /Users/jwz/Desktop/Growl-1.2.1-src/Extras/GrowlTunes/build/Debug/Growl.framework/Growl,
>  missing required architecture ppc in file

That's because GrowlTunes, in the Debug configuration, is set to build for ppc 
and x86_64 (by name), whereas Growl.framework is set to a predefined variable 
that Xcode 3.2.6 re-defined to not include ppc.

Unsetting the Architectures setting in the Debug configuration in the project 
object fixes the problem for me.

> Undefined symbols:
>  ".objc_class_name_GrowlApplicationBridge", referenced from:
>      literal-pointer@__OBJC@__cls_refs@GrowlApplicationBridge in 
> GrowlTunesController.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> 
> I tried changing the deployment target, and removing all instances of "ppc" 
> from the project info window. Didn't help.

Changing the deployment target wouldn't help, since it's not an OS-defined 
symbol that it can't find.

If you removed the ppc architecture from the Architectures build setting and 
are still getting the error, you probably changed a configuration other than 
the one you're building (i.e., you changed Release or Localization; you are 
building Debug). Make sure you have the configuration pop-up in the Info window 
set to match the config you are building, or to “All Configurations”.

The simplest fix is to delete the Architectures setting entirely. In Debug, 
this will build for your machine's native architecture, which will work on all 
Intel Macs. In Release, this builds for the same standard i386/x86_64 combo we 
use in the framework.

-- 
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en.

Reply via email to