I'm trying to compile the following github project, however I'm having issues with the dependencies. The following go get commands fails with the errors noted below
go get -u github.com/go-gl/glfw/v3.1/glfw
fails with the following:
# github.com/go-gl/glfw/v3.1/glfw
In file included from /home/bob/go/src/github.com/go-gl/glfw/v3.1/glfw/context.go:4:0:
glfw/include/GLFW/glfw3.h:153:21: fatal error: GL/gl.h: No such file or directory
compilation terminated.
and
go get github.com/go-gl/gl/v2.1-core/gl
package github.com/go-gl/gl/v2.1-core/gl: cannot find package "github.com/go-gl/gl/v2.1-core/gl" in any of:
/usr/local/go/src/github.com/go-gl/gl/v2.1-core/gl (from $GOROOT)
/home/bob/go/src/github.com/go-gl/gl/v2.1-core/gl (from $GOPATH)
I have golang installed in /usr/local/go
and the following in ~/.profile:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin