0

I want to use RaspberryIO library with dotnet core version 3.1 on Ubuntu 20.10. When it comes to use

Pi.Init<BootstrapWiringPi>();

I got error:

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libwiringPi.so.2.52' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibwiringPi.so.2.52: cannot open shared object file: No such file or directory

The same code works perfectly on Raspbian.

I use: Raspberry Pi 4

4

1 回答 1

1

就我而言(Rpi3 + Ubuntu 20.04 x64 + dotnet core 3.1):

  1. 克隆https://github.com/WiringPi/WiringPi
  2. 建造
  3. 将 libwiringPi.so.2.60 和 gpio 复制到 app 文件夹
  4. 将 libwiringPi.so.2.60 重命名为 libwiringPi.so.2.52

和 Pi.Init < BootstrapWiringPi >( ); 与 TestLedBlinking() 是工作。

于 2021-03-25T12:53:02.767 回答