diamondburned / gtkcord3

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

Download fails #101

Open flber opened 3 years ago

flber commented 3 years ago

After using the command go1.15.2 get github.com/diamondburned/gtkcord3, go outputs this error and fails to install gtkcord3

# pkg-config --cflags  -- cairo cairo-gobject gobject-2.0
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Package cairo-gobject was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-gobject.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-gobject' found
pkg-config: exit status 1
# github.com/diamondburned/gtkcord3/gtkcord/ningen
../go/src/github.com/diamondburned/gtkcord3/gtkcord/ningen/ningen.go:69:5: cannot use (*ningen.State)(nil) (type *ningen.State) as type Presencer in assignment:
    *ningen.State does not implement Presencer (wrong type for Presence method)
        have Presence(discord.GuildID, discord.UserID) (*discord.Presence, error)
        want Presence(discord.Snowflake, discord.Snowflake) (*discord.Presence, error)
../go/src/github.com/diamondburned/gtkcord3/gtkcord/ningen/ningen.go:82:9: e.ID.Valid undefined (type discord.EmojiID has no field or method Valid)

Any help in getting this to work would be appreciated

diamondburned commented 3 years ago

Top part of the error has to do with missing dependencies.

Bottom has to do with #97.

flber commented 3 years ago

What dependency am I missing? I couldn't find a package named cairo with apt, snap, or go

emmggi commented 3 years ago

I have cairo and it doesn't build for me either.

go1.15.3 cairo-1.17.2+25+gaee96d175-1

I tried cloning then building it and go getting it but no dice.

micwoj92 commented 3 years ago

should be fixed now.