[Mono-dev] help subdependancies of native libraries without LD_PRELOAD
sam at liddicott.com
Fri Dec 28 03:54:20 EST 2007
Zoltan Varga wrote:
> You should link libk8055.so against libusb.so in the normal C way, then when
> libk8055.so is loaded by mono using dlopen (), libusb.so should be loaded
> automatically by libc.
That did the trick thanks.
> On Dec 27, 2007 5:25 PM, Sam Liddicott <sam at liddicott.com> wrote:
>> My mono code uses an external native library libk8055.so, but libk8055
>> also wants libusb.so
>> In the normal C way it expects the elf linker to load libusb.so and
>> fixup the function addresses, but what is the mono-develop equivalent of
>> gcc's "-lusb"?
>> "works", but is hardly natural.
>> So how should native libraries dependencies on other libraries be
>> specified and resolved?
>> a DllImport on libusb.so's usb_init (thankfully) does not solve the
>> problem which is reported as:
>> /usr/bin/mono: symbol lookup error: /usr/lib/libk8055.so: undefined
>> symbol: usb_init
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list