| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I finally got back to this. (Vacation! :-)_______________________________________________
As far as I can tell from the info I found about @executable_path, it has to
be applied to the .dylib when it is created.
The problem is that the .dylib's are provided by a 3rd party. I don't
create them.
Any other suggestions for getting my .jnilib to find the .dylib's?
-----Original Message-----
From: Eric Albert [mailto:email@hidden]
Sent: Wednesday, September 03, 2003 1:06 AM
To: John Lussmyer
Cc: email@hidden
Subject: Re: building and using a .jnilib that uses .dylib's
At 9:29 AM -0700 9/2/03, John Lussmyer wrote:Okay, I've built a .jnilib that uses a set of .dylib's. It all worksexceptfor one little problem.work.
All the .dylib's have to be in the same folder as the Application.App
bundle. If I put them in the folder with the .jnilib, the app doesn't
It seems to be unable to find the .dylib's.
So, is there some setting I can do to make the .jnilib find the .dylib's in
the same folder?
I've never tried this, but you should be able to set the install name
of the dylibs to something relative to @executable_path that'll point
to the directory containing the dylibs. Unfortunately, I can't find
much documentation for @executable_path. Here's a page to get you
started; search for "@executable_path" to find the interesting bits:
<http://developer.apple.com/documentation/DeveloperTools/ ProjectBuilder/Proj
ectBuilder.help/Contents/Resources/English.lproj/Frameworks/ chapter_19_secti
on_3.html>
What I think you'd want to do is to add a linker flag for each of
your dylibs of "-Wl,-install_name,@executable_path/../Resources/Java"
(if the dylibs are in your application package's Resources/Java
directory). Again, this is just a guess, but it *should* work....
Hope this helps,
Eric
| References: | |
| >RE: building and using a .jnilib that uses .dylib's (From: John Lussmyer <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.