Page 1 of 1

Unhandled Exception System.DllNotFoundException phidget21

Posted: Sun Nov 15, 2015 3:23 pm
by Habitat
To cut a long story short: I am using debian 8 with mono 4 on a SBC3.

Everything works great till i try to initialise the interface object (ifKit = new InterfaceKit()) then I get:
Unhandled Exception:
System.DllNotFoundException: phidget21.dll ........

This even happens with the Phidgets InterfaceKit examples!

Any ideas that would provide a solution to this problem would be greatly appreciated!

Re: Unhandled Exception System.DllNotFoundException phidget2

Posted: Mon Nov 16, 2015 10:22 am
by Patrick
You may need to create a Phidget21.NET.dll.config file to map the dll - see http://www.phidgets.com/docs/Language_-_C_Sharp#OS_X for an example of doing this on OSX - the difference being that the phidget21.dll map on linux would be to /usr/lib/libphidget21.so

-Patrick

Re: Unhandled Exception System.DllNotFoundException phidget2

Posted: Mon Nov 16, 2015 5:49 pm
by Habitat
Thanks Patrick,

Looks like that worked!

I had to modify it slightly by adding the ".0":
<configuration>
<dllmap dll="phidget21.dll" target="/usr/lib/libphidget21.so.0" />
</configuration>


So far so good!

Greg