Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: building and using a .jnilib that uses .dylib's



John Lussmyer wrote:
| 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?

You might try setting the DYLD_LIBRARY_PATH environment variable to contain the path to the dylib's directory. For example, if your library is /Users/fred/jnistuff/greatjnitools.dylib, you'd set DYLD_LIBRARY_PATH to "/Users/fred/jnistuff". All the gory details are in the "dyld" man page ("man dyld", or open it in PB).

PB uses DYLD_LIBRARY_PATH when one target in a project uses a framework that's the product of another target in the same product, so that the framework in the "build" folder can be loaded without moving it to one of the standard locations. It also sets both DYLD_NEW_LOCAL_SHARED_REGIONS and DYLD_NO_FIX_PREBINDING to "YES", so I suspect you'd want to do so, too.

Glen Fisher
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: building and using a .jnilib that uses .dylib's (From: John Lussmyer <email@hidden>)



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.