diamondburned / dissent

Tiny native Discord app
https://flathub.org/apps/details/so.libdb.dissent
GNU General Public License v3.0
1.27k stars 40 forks source link

build error: could not determine kind of name for C.g_object_new_with_properties #220

Closed JacobFrodermann closed 8 months ago

JacobFrodermann commented 8 months ago

I ran the instructed commands and it failed

$ go install -v github.com/diamondburned/gtkcord4@latest
go: downloading github.com/diamondburned/gtkcord4 v0.0.17
github.com/diamondburned/gtkcord4/internal/signaling
github.com/diamondburned/gotk4/pkg/core/glib
# github.com/diamondburned/gotk4/pkg/core/glib
../go/pkg/mod/github.com/diamondburned/gotk4/pkg@v0.0.6-0.20231117083507-eb41da62b149/core/glib/go.go:239:10: could not determine kind of name for C.g_object_new_with_properties

Env:

$ go env
GO111MODULE=''
GOARCH='386'
GOBIN=''
GOCACHE='/home/jef/.cache/go-build'
GOENV='/home/jef/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='386'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/jef/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/jef/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/jef/Downloads/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/jef/Downloads/go/pkg/tool/linux_386'
GOVCS=''
GOVERSION='go1.21.6'
GCCGO='gccgo'
GO386='sse2'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/jef/gtkcord4/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m32 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3259213380=/tmp/go-build -gno-record-gcc-switches'
diamondburned commented 8 months ago

What distro are you on? Make sure you have a recent enough version of GTK.

JacobFrodermann commented 8 months ago

its Ubuntu 16 on 32 bit maybe bit outdated

diamondburned commented 8 months ago

That is very outdated. If possible, use the Flatpak.

diamondburned commented 8 months ago

Closing this since it seems to be a user environment issue and not a gtkcord4 issue.