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

[Issue] Unprecedented Installation Error #19

Closed
hiteshhedwig opened this issue Jul 29, 2021 · 5 comments
Closed

[Issue] Unprecedented Installation Error #19

hiteshhedwig opened this issue Jul 29, 2021 · 5 comments

Comments

@hiteshhedwig
Copy link

Hi,
I was trying to install the binding. It throws an error as mentioned in the readme. But not the same.

# github.com/mcuadros/go-rpi-rgb-led-matrix
../../../work/pkg/mod/github.com/mcuadros/[email protected]/matrix.go:6:10: fatal error: led-matrix-c.h: No such file or directory
 #include <led-matrix-c.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.

How should i deal with it ?

go env

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/username/.cache/go-build"
GOENV="/home/username/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/username/work/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/username/work"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/username/gocv_work/src/rgbtest/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build058517942=/tmp/go-build -gno-record-gcc-switches"

Any guidance?

@NelsonFrancisco
Copy link

Same. Can anyone help?

go env:

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/username/.cache/go-build"
GOENV="/home/username/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/username/.asdf/installs/golang/1.16.6/packages/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/username/.asdf/installs/golang/1.16.6/packages"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/username/.asdf/installs/golang/1.16.6/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/username/.asdf/installs/golang/1.16.6/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.6"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1790760651=/tmp/go-build -gno-record-gcc-switches"

@hiteshhedwig
Copy link
Author

hiteshhedwig commented Oct 6, 2021

Yes, try using this instead . It worked well in my case. Not to brag but i have written this blog to document what i was doing. Hopefully this helps you. Let me know if you encounter any error.

@NelsonFrancisco
Copy link

It works, thanks.

This library looks like an incomplete wrapper over original rpi-rgb-led-matrix. It looks like it does not have the equivalent of rgb_matrix::DrawText for example.

@hiteshhedwig
Copy link
Author

No. Library is well complete. Incase you want to draw text. You will have to implement it considering it as an image. See this. It may help you. Toolkit provided in repo is very helpful to understand the basic working. Hopefully, it helps.

@NelsonFrancisco
Copy link

This is offtopic, but do you know a font that both:

  • supports unicode characters like weather icons
  • looks good on a LED display. With no flickering leds because of these "gradient" pixels. For example, the "grey" pixels in these characters
    Selection_002

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