HidLibrary icon indicating copy to clipboard operation
HidLibrary copied to clipboard

Linux OS dll load exception on .Net5.0 linux-x64 build

Open michael-gabbay opened this issue 3 years ago • 1 comments

Hello. I have a product uses your library, it was in use for Win only and now we updated our systems to .Net5.0 and we should give support on linux platforms.

I tried to run published build my product which uses Hidlibrary to communicate with my Hid Device. I got the following stack trace:

i'm using version 3.3.40.

I'm getting the following exception: 'Unable to load shared library 'hid.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libhid.dll: cannot open shared object file: No such file or directory'

was originally thrown at this call stack: HidLibrary.HidDevices.HidClassGuid.get() HidLibrary.HidDevices.EnumerateDevices() HidLibrary.HidDevices.Enumerate(int, int[]) MuDi.Providers.Utils.HidLibraryUtils.LocateFtdiDevice(string)

any help will be appreciated

Thanks! Michael.

michael-gabbay avatar Jan 26 '22 16:01 michael-gabbay

it's only support for windows 。native api from HID.dll is under Windows

weicongyin avatar Mar 02 '23 13:03 weicongyin