pimoroni / unicorn-hat

Python library for Unicorn pHAT and HAT. 32 or 64 blinding ws2812 pixels for your Raspberry Pi
https://shop.pimoroni.com/products/unicorn-hat
MIT License
370 stars 131 forks source link

armv6-alpine-linux-musleabihf/bin/ld: cannot find -lws2811 #138

Open braghettos opened 4 years ago

braghettos commented 4 years ago

Hi Pimoroni team,

I'm trying to build all the libraries needed but I encounter the error that the library ws2811 is not available. I'm working in an Alpine Docker container on a Raspberry Pi Zero. Who can I fix this?

Step 10/16 : RUN cd unicorn-hat/library/legacy/rpi-ws281x/ && pwd && ls -la && python3 setup.py build
 ---> Running in ec5232273e8b
/usr/src/node-red/unicorn-hat/library/legacy/rpi-ws281x
total 196
drwxr-xr-x    3 root     root          4096 Mar 20 10:47 .
drwxr-xr-x    1 root     root          4096 Mar 20 10:47 ..
-rw-r--r--    1 root     root            95 Mar 20 10:47 MANIFEST.in
-rw-r--r--    1 root     root           139 Mar 20 10:47 Makefile
-rw-r--r--    1 root     root          2656 Mar 20 10:47 README.md
drwxr-xr-x    2 root     root          4096 Mar 20 10:47 lib
-rw-r--r--    1 root     root          5779 Mar 20 10:47 neopixel.py
-rw-r--r--    1 root     root          1206 Mar 20 10:47 rpi_ws281x.i
-rw-r--r--    1 root     root          7431 Mar 20 10:47 rpi_ws281x.py
-rw-r--r--    1 root     root        150427 Mar 20 10:47 rpi_ws281x_wrap.c
-rwxr-xr-x    1 root     root          1257 Mar 20 10:47 setup.py
running build
running build_py
Compiling ws281x library...
creating build
creating build/lib.linux-armv6l-3.8
copying neopixel.py -> build/lib.linux-armv6l-3.8
running build_ext
building '_rpi_ws281x' extension
creating build/temp.linux-armv6l-3.8
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ilib/ -I/usr/include/python3.8 -c rpi_ws281x_wrap.c -o build/temp.linux-armv6l-3.8/rpi_ws281x_wrap.o
gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-armv6l-3.8/rpi_ws281x_wrap.o -Llib/ -L/usr/lib -lws2811 -o build/lib.linux-armv6l-3.8/_rpi_ws281x.cpython-38-arm-linux-gnueabihf.so
/usr/lib/gcc/armv6-alpine-linux-musleabihf/9.2.0/../../../../armv6-alpine-linux-musleabihf/bin/ld: cannot find -lws2811