Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory: ws2811.h #2

Open
chauss opened this issue Jan 27, 2021 · 1 comment
Open

No such file or directory: ws2811.h #2

chauss opened this issue Jan 27, 2021 · 1 comment

Comments

@chauss
Copy link

chauss commented Jan 27, 2021

Hey @mcuadros,
I'm trying to use your module to get my led matrix attached to a rpi zero w running with golang.

Unfortunatly I run into this error when I run go get github.com/mcuadros/go-rpi-ws281x:

# github.com/mcuadros/go-rpi-ws281x
../go/pkg/mod/github.com/mcuadros/go-rpi-ws281x@v0.0.0-20180122015054-0d7c616b0b23/matrix.go:8:10: fatal error: ws2811.h: No such file or directory
 #include <ws2811.h>
          ^~~~~~~~~~
compilation terminated.

golang and scons are installed.

Would be nice if you could push me in the right direction to solve this issue. 👍

@brnck
Copy link

brnck commented Apr 17, 2021

Clone https://github.com/jgarff/rpi_ws281x repository

Inside repository directory type scons

Copy compiled lib and rest of the includes:

cp ws2811.h /usr/local/include/ws2811.h && \
cp rpihw.h /usr/local/include/rpihw.h && \
cp pwm.h /usr/local/include/pwm.h && \
cp libws2811.a /usr/local/lib/libws2811.a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants