"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]


|