Re: Using dynamic library without setting environment variables
Re: Using dynamic library without setting environment variables
- Subject: Re: Using dynamic library without setting environment variables
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 11 Mar 2003 04:24:05 -0800
On Tuesday, March 11, 2003, at 02:37 AM, Christian Bxtker Hxj wrote:
The DYLD_LIBRARY_PATH is necessary to find the library and the three
others are Oracle specific. The Oracle specific variables are okay to
set from code (using setenv() or putenv() ) but the DYLD_LIBRARY_PATH
is needed before launching the application or else the application
fails with an error like
dyld: ./cdemo82 can't open library:
/dsk2/src_020404/lib/libclntsh.dylib
It would be possible to remedy this problem if I could change the
installation location of the library to something like
@executable_path/../Frameworks instead of /dsk2/src_020404/lib/ but,
alas, I do not have access to the source code - it is securely in
Oracle's hands.
Try using "install_name_tool" from the command line. It should be able
to adjust the library's install path so you can embed the library into
the application package in the usual way. It has a man page...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
if (message.signature==FUNNY) steal(message.signature); else
message=message->next;
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.