Libraries path: cocoa app + custom exe
Libraries path: cocoa app + custom exe
- Subject: Libraries path: cocoa app + custom exe
- From: Sensei <email@hidden>
- Date: Tue, 15 Jun 2010 08:23:54 +0200
Hi all!
I am developing an application that is not very standard, and I am thinking about how to avoid a (potential) hassle. I'll explain myself :)
I have a Cocoa (bundle) app that runs a C++ executable (after some binary processing of such program --- this is not a bundle). The C++ program, however, is linked to some dynamic libraries that I'd like to redistribute. This means that library paths will change when copying the executable into the cocoa app.
Is there a way of changing the dynamic library path of a C++ executable, referring to an external bundle? I am thinking about install_name_tool, but before I begin to mess my scripts up, I'd like some reassurance :)
For example, running the following on the C++ executable, will it work similarly?
install_name_tool -id @executable_path/../Frameworks/libXXX.dylib myCocoa.app/Contents/Frameworks/libXXX.dylib
Thanks & cheers!
_______________________________________________
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