Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > Re: Simple Soft...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 3771 of 3882
Post > Topic >>

Re: Simple Software Distribution (bundle+dylib)

by "Armel" <armelasselin@[EMAIL PROTECTED] > Jun 14, 2008 at 08:58 PM

"Korchkidu" <korchkidu@[EMAIL PROTECTED]
> a écrit dans le message de news: 
3ab2f33a-7e3a-401f-9551-749c7f5c2b23@[EMAIL PROTECTED]
> Hi everybody,
>
> I have a plug-in (a .bundle) that is linked against a dynamic lib I
> wrote. Everything works fine on my machine. The only problem is that
> now, I want to distribute it. Problem, I would like to make it very
> simple. For the moment, the .dylib has to be in the /usr/local/lib
> folder for my application to work well. So, I need the user to copy it
> manually to that folder which is kind of "hard" sometimes. So, here is
> my question:
>
> Is there a simple way to specify my application (during compile time
> with xcode or anything else) to look in its current directory first?
> In other words, I would like my application to be in a directory named
> for example /home/mySuperApp/ and to automatically look in the
> directory /home/mySuperApp/libs/ when dylib is needed without asking
> the user to modify the environment variables or something else.
there is notion of @[EMAIL PROTECTED]
 or @[EMAIL PROTECTED]
 which you can use in 
front of your library path (e.g. @[EMAIL PROTECTED]
) which
means 
to search your library from the path of the executable for the first form,

and of the executable or dynamic library within it which issues the load 
call for the second.
in order to do that practically, you can that command line:
install_name_tool -change dylibname @[EMAIL PROTECTED]
 exename

the mac which will run the executable will have to be mac os 10.4 at least

for that to work from what I understood (maybe less for @[EMAIL PROTECTED]
)

> A must specifiy that I am kind of new to the mac world so please, do
> not hesitate if you have any advice, recommandations, questions,
> remarks, etc.
>
> Any help would be appreciated.
> K.
HIH
Armel
PS: i'am not totally sure of the "@[EMAIL PROTECTED]
" but i am for 
@[EMAIL PROTECTED]

 




 3 Posts in Topic:
Simple Software Distribution (bundle+dylib)
Korchkidu <korchkidu@[  2008-06-14 08:43:21 
Re: Simple Software Distribution (bundle+dylib)
"Armel" <arm  2008-06-14 20:58:16 
Re: Simple Software Distribution (bundle+dylib)
Korchkidu <korchkidu@[  2008-06-16 01:20:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 11:18:06 CST 2008.