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

Dylib Dependencies (again)


  • Subject: Dylib Dependencies (again)
  • From: Dave <email@hidden>
  • Date: Tue, 5 Jun 2007 23:00:44 +0100

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.

How I can I specify the path for both platforms at build time? Otherwise I have to build it on whatever platform and then run "install_name_tool" on each platform. I need to just ship the library and have it work on both platforms. I don't care if I have to use "install_name_tool" but it would be better if I could do it in XCode.

I'm really confused and not at all sure how this process is supposed to work, so any help would be greatly appreciated.

Thanks for your help
All the Best
Dave _______________________________________________
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: Peter O'Gorman <email@hidden>
  • Prev by Date: RE: testing list
  • Next by Date: Re: Dylib Dependencies (again)
  • Previous by thread: FYI: From C++ to Objective-C
  • Next by thread: Re: Dylib Dependencies (again)
  • Index(es):
    • Date
    • Thread