Re: Can I drag-install dylibs?
Re: Can I drag-install dylibs?
- Subject: Re: Can I drag-install dylibs?
- From: jason rusoff <email@hidden>
- Date: Tue, 16 Dec 2003 11:13:54 -0800
Nick,
Yes, I linked against the files in my app. I also added a copy files
phase and tried putting the dylibs into myapp.app/Contents/MacOS/ and
in myapp.app/Contents/Frameworks.
Still no go. Do I need to check if the libs are built with GCC 2.9
versus 3.1? I'm using 3.1, but the libs are old and may have used GCC
2.9.5
Here is what I see on launch:
dyld:
/Users/jasonrus/Projects/scan/FieryRemoteScanX/Mac/build/
HarmonyTests.app/Contents/MacOS/HarmonyTests can't open library:
libtrpc_osa.dylib (No such file or directory, errno = 2)
Here is the directory listing:
[dhcp-10-10-67-51:HarmonyTests.app/Contents/MacOS] jasonrus% pwd
/Users/jasonrus/Projects/scan/FieryRemoteScanX/Mac/build/
HarmonyTests.app/Contents/MacOS
[dhcp-10-10-67-51:HarmonyTests.app/Contents/MacOS] jasonrus% ls -al
total 80320
drwxr-xr-x 26 jasonrus staff 884 Dec 16 10:23 .
drwxr-xr-x 9 jasonrus staff 306 Dec 16 10:45 ..
-rwxr-xr-x 1 jasonrus staff 6148 Dec 16 10:23 .DS_Store
-rwxr-xr-x 1 jasonrus staff 23852508 Dec 16 09:50 HarmonyTests
-rwxr-xr-x 1 jasonrus staff 3345224 Dec 16 10:18 libehm10.dylib
-rwxr-xr-x 1 jasonrus staff 229140 Dec 16 10:18 libehmaddr.dylib
-rwxr-xr-x 1 jasonrus staff 372384 Dec 16 10:18 libehmbasc.dylib
-rwxr-xr-x 1 jasonrus staff 1054640 Dec 16 10:18 libehmbrg.dylib
-rwxr-xr-x 1 jasonrus staff 193752 Dec 16 10:18 libehmclk.dylib
-rwxr-xr-x 1 jasonrus staff 370796 Dec 16 10:18 libehmcore.dylib
-rwxr-xr-x 1 jasonrus staff 209524 Dec 16 10:18 libehmcorp.dylib
-rwxr-xr-x 1 jasonrus staff 126108 Dec 16 10:18 libehmcsp.dylib
-rwxr-xr-x 1 jasonrus staff 204100 Dec 16 10:18 libehmctp.dylib
-rwxr-xr-x 1 jasonrus staff 1046688 Dec 16 10:18 libehmecol.dylib
-rwxr-xr-x 1 jasonrus staff 3657088 Dec 16 10:18 libehmefi.dylib
-rwxr-xr-x 1 jasonrus staff 227852 Dec 16 10:18 libehmextr.dylib
-rwxr-xr-x 1 jasonrus staff 287532 Dec 16 10:18 libehmgas.dylib
-rwxr-xr-x 1 jasonrus staff 2996780 Dec 16 10:18 libehmipc.dylib
-rwxr-xr-x 1 jasonrus staff 139292 Dec 16 10:18 libehmlic.dylib
-rwxr-xr-x 1 jasonrus staff 433120 Dec 16 10:18 libehmmfp.dylib
-rwxr-xr-x 1 jasonrus staff 175964 Dec 16 10:18 libehmpgm.dylib
-rwxr-xr-x 1 jasonrus staff 139972 Dec 16 10:18 libehmptme.dylib
-rwxr-xr-x 1 jasonrus staff 491132 Dec 16 10:18 libehmscan.dylib
-rwxr-xr-x 1 jasonrus staff 1058476 Dec 16 10:18 libehmxcol.dylib
-rwxr-xr-x 1 jasonrus staff 180328 Dec 16 10:18 libtrpc_osa.dylib
-rwxr-xr-x 1 jasonrus staff 282604 Dec 16 10:18
libtrpc_server.dylib
Am I missing something? Is there a way to load these libs manually?
Thanks for any advice,
Jason
On Monday, December 15, 2003, at 05:09 PM, Nick Zitzmann wrote:
On Dec 15, 2003, at 10:58 AM, jason rusoff wrote:
I'm having some problems on launch with some dylibs within my app's
bundle. I dragged the libs there in finder.
Why not use a copy files build phase to automate this?
Does the dynamic loader check the file mod date for a dylib against
some internal date in the file?
No.
I am wondering why the loader doesn't see libs that are definitely
there.
You didn't say whether or not you linked the executable against the
libraries. Did you do that?
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
"That's a funny thing to promise. Well, you can't never let anything
happen to him [Nemo]; then, nothing would ever happen to him." - Dory,
from the movie "Finding Nemo"
_______________________________________________
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.