Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
sampler and dynamic libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sampler and dynamic libraries



Hi,

I have a shell tool which uses a dynamic library. In order to run it from the shell, I set DYLD_LIBRARY_PATH and everything works like a charm.

When I try to use Sampler to profile my tool, it fails. Looking at the console log reveals that the dynamic library was not found:

dyld: Library not loaded: libsdUtils.dylib
Referenced from: /Volumes/WD_Disk//rgtest
Reason: image not found

1. Is there any way to let Sampler know where the dynamic library is? I am not able to find such a way (if it exists) or information about it?

2. Better yet, is there anyway to set the DYLD_LIBRARY_PATH on a "global computer level" so that my tool can be run from anywhere?

Thanks for any pointers,

-- ivan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.