fgrosse / go-home

An OpenGL based progress bar that lets you know when you should really go home after a long day :clock10:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-home failed to install from source

byteshiva opened this issue · comments

commented

go-home failed to install from source

➜ go version
go version go1.13.5 linux/amd64

➜ go install && go-home --debug
go: downloading github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: downloading golang.org/x/image v0.0.0-20190523035834-f03afa92d3ff
go: downloading github.com/fgrosse/pixel v0.8.1-0.20190530122943-dd5e0d8b09c3
go: downloading gopkg.in/yaml.v3 v3.0.0-20190502103701-55513cacd4ae
go: downloading github.com/spf13/cobra v0.0.4
go: downloading go.uber.org/zap v1.10.0
go: extracting github.com/spf13/cobra v0.0.4
go: downloading github.com/spf13/pflag v1.0.3
go: extracting go.uber.org/zap v1.10.0
go: downloading go.uber.org/multierr v1.1.0
go: downloading go.uber.org/atomic v1.4.0
go: extracting gopkg.in/yaml.v3 v3.0.0-20190502103701-55513cacd4ae
go: extracting github.com/fgrosse/pixel v0.8.1-0.20190530122943-dd5e0d8b09c3
go: downloading github.com/go-gl/mathgl v0.0.0-20190416160123-c4601bc793c7
go: downloading github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1
go: downloading github.com/faiface/glhf v0.0.0-20181018222622-82a6317ac380
go: extracting github.com/spf13/pflag v1.0.3
go: extracting github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: downloading github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3
go: extracting go.uber.org/atomic v1.4.0
go: extracting go.uber.org/multierr v1.1.0
go: extracting github.com/faiface/glhf v0.0.0-20181018222622-82a6317ac380
go: downloading github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
go: extracting github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3
go: extracting github.com/go-gl/mathgl v0.0.0-20190416160123-c4601bc793c7
go: extracting github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1
go: extracting github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
go: extracting golang.org/x/image v0.0.0-20190523035834-f03afa92d3ff
go: finding github.com/fgrosse/pixel v0.8.1-0.20190530122943-dd5e0d8b09c3
go: finding github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: finding github.com/spf13/cobra v0.0.4
go: finding go.uber.org/zap v1.10.0
go: finding golang.org/x/image v0.0.0-20190523035834-f03afa92d3ff
go: finding github.com/faiface/glhf v0.0.0-20181018222622-82a6317ac380
go: finding gopkg.in/yaml.v3 v3.0.0-20190502103701-55513cacd4ae
go: finding github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3
go: finding github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1
go: finding github.com/go-gl/mathgl v0.0.0-20190416160123-c4601bc793c7
go: finding github.com/spf13/pflag v1.0.3
go: finding go.uber.org/atomic v1.4.0
go: finding go.uber.org/multierr v1.1.0
go: finding github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
# github.com/go-gl/glfw/v3.2/glfw
In file included from ../../.asdf/installs/golang/1.13.5/packages/pkg/mod/github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1/v3.2/glfw/c_glfw_linbsd.go:24:
../../.asdf/installs/golang/1.13.5/packages/pkg/mod/github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1/v3.2/glfw/glfw/src/linux_joystick.c: In function ‘_glfwInitJoysticksLinux’:
../../.asdf/installs/golang/1.13.5/packages/pkg/mod/github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1/v3.2/glfw/glfw/src/linux_joystick.c:224:42: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 9 [-Wformat-truncation=]
  224 |             snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name);
      |                                          ^~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /usr/include/X11/Xcursor/Xcursor.h:26,
                 from ../../.asdf/installs/golang/1.13.5/packages/pkg/mod/github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1/v3.2/glfw/glfw/src/x11_platform.h:39,
                 from ../../.asdf/installs/golang/1.13.5/packages/pkg/mod/github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1/v3.2/glfw/glfw/src/internal.h:169,
                 from ../../.asdf/installs/golang/1.13.5/packages/pkg/mod/github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1/v3.2/glfw/glfw/src/x11_init.c:28,
                 from ../../.asdf/installs/golang/1.13.5/packages/pkg/mod/github.com/go-gl/glfw@v0.0.0-20190409004039-e6da0acd62b1/v3.2/glfw/c_glfw_linbsd.go:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 12 and 267 bytes into a destination of size 20
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
go-home: command not found

Hey @byteshiva that looks like an installation issue with the Go bindings for GLFW (i.e. github.com/go-gl/glfw). Did you install all dependencies as described in that repo?

Also seems there is now an update to GLFW 3.3 but this repo is still using 3.2. Probably that could explain the issue and updating to 3.3 would help. I can look into it during the week but if you want to give it a shot, feel free to open a PR :)

We finally have a new pixel version (v0.9.0) and I just updated to it.

As far as I can tell it should work now again:

$ go get -v github.com/fgrosse/go-home/                     
github.com/fgrosse/go-home (download)
golang.org/x/image/math/f32
golang.org/x/image/colornames
github.com/faiface/mainthread
go.uber.org/zap/buffer
go.uber.org/atomic
github.com/faiface/pixel
github.com/pkg/errors
github.com/go-gl/mathgl/mgl32
golang.org/x/image/math/fixed
github.com/go-gl/glfw/v3.2/glfw
github.com/go-gl/gl/v3.3-core/gl
github.com/fgrosse/go-home/assets
github.com/spf13/pflag
go.uber.org/multierr
golang.org/x/image/font
github.com/golang/freetype/raster
golang.org/x/image/font/basicfont
go.uber.org/zap/internal/bufferpool
go.uber.org/zap/internal/color
go.uber.org/zap/internal/exit
gopkg.in/yaml.v3
go.uber.org/zap/zapcore
github.com/faiface/pixel/imdraw
github.com/faiface/pixel/text
github.com/golang/freetype/truetype
go.uber.org/zap
github.com/spf13/cobra
github.com/faiface/glhf
github.com/faiface/pixel/pixelgl
github.com/fgrosse/go-home

If you still encounter an issue please reopen this ticket :)