Dylib Dependencies (again)
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