xyproto / wallutils

:city_sunset: Utilities for handling monitors, resolutions, wallpapers and timed wallpapers
BSD 3-Clause "New" or "Revised" License
463 stars 17 forks source link

Build issues on Ubuntu 19.04 #8

Closed jolyonbrown closed 4 years ago

jolyonbrown commented 4 years ago

Hi there - just following the instructions for the Ubuntu build and seem to have come across a problem. After installing the recommended packages the make command throws out

~/wallutils$ make go build xrandr.go:6:2: cannot find package "github.com/fatih/color" in any of: /usr/lib/go-1.10/src/github.com/fatih/color (from $GOROOT) /home/jolyon/go/src/github.com/fatih/color (from $GOPATH) collections.go:4:2: cannot find package "github.com/stretchr/powerwalk" in any of: /usr/lib/go-1.10/src/github.com/stretchr/powerwalk (from $GOROOT) /home/jolyon/go/src/github.com/stretchr/powerwalk (from $GOPATH) collections.go:5:2: cannot find package "github.com/xyproto/gnometimed" in any of: /usr/lib/go-1.10/src/github.com/xyproto/gnometimed (from $GOROOT) /home/jolyon/go/src/github.com/xyproto/gnometimed (from $GOPATH) x11.go:11:2: cannot find package "github.com/xyproto/imagelib" in any of: /usr/lib/go-1.10/src/github.com/xyproto/imagelib (from $GOROOT) /home/jolyon/go/src/github.com/xyproto/imagelib (from $GOPATH) collections.go:6:2: cannot find package "github.com/xyproto/simpletimed" in any of: /usr/lib/go-1.10/src/github.com/xyproto/simpletimed (from $GOROOT) /home/jolyon/go/src/github.com/xyproto/simpletimed (from $GOPATH) x11.go:12:2: cannot find package "github.com/xyproto/xpm" in any of: /usr/lib/go-1.10/src/github.com/xyproto/xpm (from $GOROOT) /home/jolyon/go/src/github.com/xyproto/xpm (from $GOPATH) make: *** [Makefile:7: all] Error 1

Just looking to help amend the install instructions for clueless folks like me - I'm assuming I'd need to install each one of those separately?

xyproto commented 4 years ago

Thanks for reporting. I assume the version of Go on Ubuntu 19.04 is too old.

I will try to reproduce the issue.

jolyonbrown commented 4 years ago

My local go version - I'll see if bumping it up helps.

$ go version go version go1.10.4 linux/amd64

jolyonbrown commented 4 years ago

OK, managed to get this to build. Ditched the Ubuntu go package, downloaded the tar file from golang direct, so now using:

$ go version go version go1.12.7 linux/amd64

Also had to install libwayland-dev and libxpm-dev to get the build to complete. Now to actually try this out!

xyproto commented 4 years ago

Thanks for testing! Please let me know if you encounter any issues, and I'll do my best to sort them out.

I'll add a note to the documentation that Go 1.12 or later is required.