polyfloyd / shady

CLI tool to render GLSL shaders
GNU General Public License v3.0
120 stars 8 forks source link

Unable to install shady on Raspberry Pi (kinect.go:216:9: undefined: unsafe.Slice) #15

Closed freumichCH closed 2 years ago

freumichCH commented 2 years ago

Hello @polyfloyd

Thank you for sharing this amazing project.

Unfortunaly i'm unable to install the project on my Raspberry Pi 4.

I figured out the needed packages with a kind of try and error procedure. Now i stuck at an "undefined: unsafe.Slice" error while installing.

root@raspberrypi:~# go get -u -v github.com/polyfloyd/shady/cmd/shady
github.com/polyfloyd/shady (download)
github.com/fsnotify/fsnotify (download)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
golang.org/x/sys (download)
get "golang.org/x/sys/internal/unsafeheader": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/internal/unsafeheader?go-get=1
get "golang.org/x/sys/internal/unsafeheader": verifying non-authoritative meta tag
github.com/go-gl/gl (download)
github.com/go-gl/glfw (download)
github.com/mjibson/go-dsp (download)
github.com/tarm/serial (download)
github.com/polyfloyd/shady/shadertoy/kinect
# github.com/polyfloyd/shady/shadertoy/kinect
go/src/github.com/polyfloyd/shady/shadertoy/kinect/kinect.go:216:9: undefined: unsafe.Slice
go/src/github.com/polyfloyd/shady/shadertoy/kinect/kinect.go:230:11: undefined: unsafe.Slice

dpgkg -l Shows me following freenect library:

ii  libfreenect-dev:armhf          1:0.5.3-1                           armhf        library for accessing Kinect device -- development files
ii  libfreenect0.5:armhf           1:0.5.3-1                           armhf        library for accessing Kinect device

I'm really new to golang. May you have a tip for me how to solve this Problem.

Thanks in advance! 😊 ✌🏻

freumichCH commented 2 years ago

Solved by downloading repo with git https://github.com/polyfloyd/shady.git and then issue install command go get -u github.com/polyfloyd/shady/cmd/shady

Install requires go1.17!