• 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
Libraries path: cocoa app + custom exe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: can't debug safari plugin when using 64 bit
  • Next by Date: (no subject)
  • Previous by thread: multilayer build settings
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread