• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Silently failure to link Good-looking dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Silently failure to link Good-looking dylib


  • Subject: Re: Silently failure to link Good-looking dylib
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 7 Feb 2011 14:45:20 +0100

Le 7 févr. 2011 à 14:34, Jerry Krinock a écrit :

> Unfortunately, I need to build build a Mozilla component (dylib) which runs on ppc, i386 and x86_64.  I'm doing lipo-suction on pre-built binaries they provide, building two versions of my component and then lipo-adding.  It's still a mess, but easier I'm sure than building two versions of "the whole lizard".
>
> Almost done, but now something really weird.  In building my ppc dylib product, I need to link to three pre-built binaries:
>
> libxpcomglue_s.a
> libxpcom.dylib
> libnspr4.dylib
>
> Xcode allows me to add these three to my target (whose "Release" and "Debug" architectures are both "ppc" only).  And the static library (.a) links OK.  But the two dylibs have no checkbox for Target Membership.
>
> When I build this, their symbols are missing and the build fails.
>
> If I run the 'lipo -info' and 'nm' commands on these dylibs, they are said to be valid non-fat ppc binaries, containing many symbols, all as expected.
>
> I don't get any warnings when adding them to the target, and no other linking errors other than the missing symbols.  It just silently fails to link them.
>
> How can I get my checkboxes?
>
> Thanks,


Drop them directly in the "Link" build step (in your target).
If it does not works, you can add linker flags in your build settings to workaround the problem.

-- Jean-Daniel




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Silently failure to link Good-looking dylib
      • From: Jerry Krinock <email@hidden>
References: 
 >Silently failure to link Good-looking dylib (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Silently failure to link Good-looking dylib
  • Next by Date: Re: Find terms "carry over" between apps
  • Previous by thread: Silently failure to link Good-looking dylib
  • Next by thread: Re: Silently failure to link Good-looking dylib
  • Index(es):
    • Date
    • Thread