diamondburned / gotktrix

Matrix client in Go and GTK4
GNU Affero General Public License v3.0
312 stars 6 forks source link

Installation Instructions #24

Closed russoj88 closed 2 years ago

russoj88 commented 2 years ago

Are there instructions for installing via the go tool?

This is what I'm getting on Ubuntu:

➜  ~ go install github.com/diamondburned/gotktrix@latest
go: downloading github.com/diamondburned/gotktrix v0.0.0-20220122112837-ceacedb5d392
go: downloading github.com/diamondburned/gotk4/pkg v0.0.0-20211231035909-9969b912d153
go: downloading github.com/chanbakjsd/gotrix v0.3.2-0.20220103051835-3dbe83009cb2
go: downloading github.com/diamondburned/adaptive v0.0.2-0.20220104050111-af838c128399
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/zalando/go-keyring v0.1.1
go: downloading github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
go: downloading github.com/godbus/dbus/v5 v5.0.3
go: downloading github.com/blevesearch/bleve/v2 v2.1.0
go: downloading github.com/fatih/color v1.10.0
go: downloading go.etcd.io/bbolt v1.3.5
go: downloading golang.org/x/tools v0.0.0-20200928182047-19e03678916f
go: downloading github.com/enescakir/emoji v1.0.0
go: downloading github.com/sahilm/fuzzy v0.1.0
go: downloading github.com/yuin/goldmark v1.4.0
go: downloading github.com/bbrks/go-blurhash v1.1.1
go: downloading github.com/alecthomas/chroma v0.9.2
go: downloading github.com/peterbourgon/diskv v2.0.1+incompatible
go: downloading github.com/blevesearch/bleve_index_api v1.0.1
go: downloading github.com/mattn/go-colorable v0.1.8
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d
go: downloading github.com/google/btree v1.0.1
go: downloading github.com/dlclark/regexp2 v1.4.0
go: downloading github.com/blevesearch/upsidedown_store_api v1.0.1
go: downloading github.com/RoaringBitmap/roaring v0.7.3
go: downloading github.com/blevesearch/scorch_segment_api/v2 v2.0.1
go: downloading github.com/blevesearch/vellum v1.0.5
go: downloading github.com/blevesearch/zapx/v11 v11.2.2
go: downloading github.com/blevesearch/zapx/v12 v12.2.2
go: downloading github.com/blevesearch/zapx/v13 v13.2.2
go: downloading github.com/blevesearch/zapx/v14 v14.2.2
go: downloading github.com/blevesearch/zapx/v15 v15.2.2
go: downloading github.com/steveyen/gtreap v0.1.0
go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
go: downloading github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
go: downloading golang.org/x/mod v0.3.0
go: downloading go4.org/unsafe/assume-no-moving-gc v0.0.0-20201222180813-1025295fd063
go: downloading github.com/blevesearch/snowballstem v0.9.0
go: downloading github.com/blevesearch/segment v0.9.0
go: downloading github.com/blevesearch/go-porterstemmer v1.0.3
go: downloading github.com/blevesearch/mmap-go v1.0.2
go: downloading github.com/bits-and-blooms/bitset v1.2.0
go: downloading github.com/golang/snappy v0.0.1
# pkg-config --cflags  -- glib-2.0 gobject-introspection-1.0
Package gobject-introspection-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-introspection-1.0' found
pkg-config: exit status 1
# pkg-config --cflags  -- graphene-gobject-1.0 graphene-1.0
Package graphene-gobject-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `graphene-gobject-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'graphene-gobject-1.0' found
Package graphene-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `graphene-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'graphene-1.0' found
pkg-config: exit status 1
➜  ~ 
diamondburned commented 2 years ago

Follow https://github.com/diamondburned/gotk4-examples#getting-started, then run the go install... command. The binary will be in ~/go/bin (or $GOPATH/bin (or $GOBIN)).

russoj88 commented 2 years ago

Thanks! Got it running.

itJunky commented 2 years ago

have same issue, but this doesn't help me on PopOs ((( libgtk-3-dev/now 3.24.30-1ubuntu1.1 amd64 [установлен, локальный] -- installed

diamondburned commented 2 years ago

gotktrix uses GTK4, so you need libgtk-4-dev.

I think.