• 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: Dylib Dependencies (again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dylib Dependencies (again)


  • Subject: Re: Dylib Dependencies (again)
  • From: Peter O'Gorman <email@hidden>
  • Date: Tue, 05 Jun 2007 17:39:40 -0500

On Tue, 2007-06-05 at 23:00 +0100, Dave wrote:
> Hi All,
>
> I finally figured out how to specify relative paths for libraries
> that require a secondary library to be loaded. My build machine is a
> PowerPC but I am trying to build something that works for PowerPC or
> Intel based Mac's. I got this to work on the PowerPC and all was
> well, I used "install_name_tool" (on the build machine - PowerPC) and
> all worked wonderfully. But when I copy it to an Intel based machine,
> the library path is not set correctly. Here is the path I am setting:
>
> @loader_path/../../../../DynamicLibraries/libfpacore2_uni.dylib
>
> The Library I am building is Universal and I build it from two files
> (PowerPC and Intel) into one the dylib you see above.

I'm pretty sure that install_name_tool sets the install_name for every
architecture, but not at a mac to check.

You can do:
otool -arch ppc -L file.dylib
and:
otool -arch i386 -L file.dylib

To check the install names are the same (or not) for both architectures.

Hope this helps,
Peter

 _______________________________________________
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: Dylib Dependencies (again)
      • From: Dave <email@hidden>
References: 
 >Dylib Dependencies (again) (From: Dave <email@hidden>)

  • Prev by Date: Dylib Dependencies (again)
  • Next by Date: Re: Editing pbxproj manually
  • Previous by thread: Dylib Dependencies (again)
  • Next by thread: Re: Dylib Dependencies (again)
  • Index(es):
    • Date
    • Thread