Mike Myers wrote:
> Hello all. I'm new to both development on a Mac and to the Fink  
> package manager. I've been to the Fink user FAQs and through the user  
> guides and didn't see any mention of this problem when I searched the  
> mailing list archives, so ...
>
> I have some fairly simple C code that I am compiling (in Xcode 2) as a  
> command-line application. I want to use the glib-2.0 library. So I  
> installed glib-2.0 using Fink, and I believe I set up the appropriate  
> search paths in my Xcode project for it to find the header files and  
> the library directory. It compiles fine, but has a linker error about  
> not being able to find the symbols from the glib-2.0 library. The  
> reason for this appears to have something to do with the way Fink has  
> built the library for me. Below is the error from the linker in Xcode:
>
> "warning /sw/lib/libglib-2.0.dylib cputype (7, architecture i386) does  
> not match cputype (18) for specified -arch flag: ppc (file not loaded)"
>
>   
It looks to me like Fink built it correctly but whatever you're trying
to compile is trying to force a Universal build.
> If I had to guess, I'd say Xcode was trying to build a PPC executable  
> and it only found Intel binaries in the Fink libraries directory. But,  
> I have specified my project settings (the "Architecture" setting) to  
> be "i386" as I am on an Intel MacBook Pro. I am really at a loss as to  
> what to do and what to blame. When you install packages from source,  
> does Fink build Universal binaries by default? 
 No
> If not, is there  
> something I can to do make it do so?
>
>   
No.
> FYI, in order to link against glib-2.0 I have done the following in  
> Xcode: in the "Targets" group, under "Link Binary with Libraries", I  
> added in the full path to libglib-2.0.a
>
>   
Fink deliberately won't build binaries for PowerPCs on an Intel box. 
Did you migrate stuff from a PowerPC?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to