[Mono-list] System.DllNotFoundException, but dll is there.
Paolo Molaro
lupus at ximian.com
Wed Oct 21 05:39:12 EDT 2009
On 10/21/09 Robert Jordan wrote:
> > Mono-INFO: DllImport loading library: './libUFScanner.so'.
> > Mono-INFO: DllImport error loading library './libUFScanner.so: undefined
> > symbol: usb_bulk_read'.
>
> The library libUFScanner.so was loaded but it was not able
> to resolve its import 'usb_bulk_read'. It seems that
> your system is lacking "libusb".
There is another possibility: he may have libusb installed, but
libUFScanner.so is incorrectly linked and it doesn't reference libusb.
The fix for this is to recompile libUFScanner.so adding -lusb to the
link command. If recompiling is not possible, a workaround is to cause
the libusb library to be loaded before libUFScanner.so. This can be
accomplished by p/invoking a function from libusb (like, for example,
usb_set_debug()) at the start of the program.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-list
mailing list