diamondburned / gtkcord3

A Gtk3 Discord client in Golang
GNU General Public License v3.0
628 stars 28 forks source link

How to build from source? #62

Closed NTBBloodbath closed 4 years ago

NTBBloodbath commented 4 years ago

I want to build from source but Idk how to do it (I never used golang before)... The reason of it is due to I'm getting some errors when installing with go get command.

There's the error log

# cd .; git clone -- https://github.com/markbates/pkger /home/bloodbath/go/src/github.com/markbates/pkger
Cloning into '/home/bloodbath/go/src/github.com/markbates/pkger'...
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
package github.com/markbates/pkger: exit status 128
package github.com/markbates/pkger/pkging/mem: cannot find package "github.com/markbates/pkger/pkging/mem" in any of:
    /usr/lib/go-1.14/src/github.com/markbates/pkger/pkging/mem (from $GOROOT)
    /home/bloodbath/go/src/github.com/markbates/pkger/pkging/mem (from $GOPATH)
diamondburned commented 4 years ago

You only need to run go get github.com/diamondburned/gtkcord3.

NTBBloodbath commented 4 years ago

You only need to run go get github.com/diamondburned/gtkcord3.

Yeah, I did it but I got some errors and the logs are above.

NTBBloodbath commented 4 years ago

Well, I fixed the error above by restarting but now I'm getting that

# github.com/diamondburned/handy
../go/src/github.com/diamondburned/handy/dialog.go:50:7: could not determine kind of name for C.hdy_dialog_get_narrow

Could it be due to a missing dependency?

diamondburned commented 4 years ago

Seems like your libhandy is outdated. This is added in v0.0.11: https://honk.sigxcpu.org/projects/libhandy/doc/api-index-0-0-11.html

NTBBloodbath commented 4 years ago

Seems like your libhandy is outdated. This is added in v0.0.11: https://honk.sigxcpu.org/projects/libhandy/doc/api-index-0-0-11.html

Yeah, I updated my Ubuntu version from 19.10 to 20.04 and it's working now. Thank you!