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.
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.


|