首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Groovie Gorilla和GPIO

Groovie Gorilla和GPIO
EN

Stack Overflow用户
提问于 2020-12-15 19:23:30
回答 1查看 334关注 0票数 0

我想在Ubuntu20.10上使用带有dotnet核心版本3.1的RaspberryIO库。当涉及到使用

代码语言:javascript
复制
Pi.Init<BootstrapWiringPi>();

我有错误:

代码语言:javascript
复制
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

相同的代码在Raspbian上也能很好地工作。

我使用:覆盆子Pi 4

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-25 12:53:02

在我的例子中(Rpi3 +Ubuntu20.04 x64 +DotNetCore3.1):

https://github.com/WiringPi/WiringPi

  • build

  • copy libwiringPi.so.so.2.60和gpio克隆到应用程序文件夹

  • 重命名libwiringPi.so.so.2.60到libwiringPi.so.2.52

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65312385

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档