rpi-ws281x / rpi-ws281x-csharp

C# / .NET library wrapper for the rpi-ws281x library
BSD 2-Clause "Simplified" License
28 stars 17 forks source link

Dockerfile - Unable to load shared library 'ws2811.so' #5

Closed adrian-patterson closed 3 years ago

adrian-patterson commented 3 years ago

I am running a .net core application using a Dockerfile, and am trying to get this library to work. After following build instructions, I am getting the following System.DllNotFoundException:

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

So it seems as if the ws2811.so shared library is not found from the server, even though I've included in the Raspberry Pi's /usr/lib and /usr/local/lib directories. I have also confirmed that the ws2811.so library is installed correctly on the device, as the test from the repo ran successfully. Not sure where to go from here, hopefully there is still someone who could help me on this. Thanks!

adrian-patterson commented 3 years ago

Solved. Check Dockerfile - Building the Shared Library in a Dockerfile #451 for solution.