Gotk3 and go1.11.4

Hi,
I’m working on windows 7, x64. In one of my projects I need a GUI and I installed gotk3 (gtk3 for go).
Here step by step instruction https://github.com/gotk3/gotk3/wiki/Installing-on-Windows.
Everything works fine. My frien asked me to help install gotk3, as he got error after installation.
I woundered when we reinstall all (instaled latest go1.11.4 and msys64) and got same result.
As we didn’t have a solution, I decided to try reinstall all at home on my pc. step by step I found that it works with go1.11.2 but don’t with go1.11.4.

go get github.com/gotk3/gotk3/gtk
# github.com/gotk3/gotk3/pango
C:\Users\Admin\AppData\Local\Temp\go-build381062570\b035\_x002.o: In function 
`_cgo_d7fe93989068_Cfunc_g_value_get_enum':
/tmp/go-build/cgo-gcc-prolog:56: undefined reference to `g_value_get_enum'
C:\Users\Admin\AppData\Local\Temp\go-build381062570\b035\_x004.o: In function 
`_cgo_d7fe93989068_Cfunc_g_value_get_boxed':
/tmp/go-build/cgo-gcc-prolog:62: undefined reference to `g_value_get_boxed'
collect2.exe: error: ld retu> Blockquoterned 1 exit status

I can’t undestand it’s I do something wrong or this is a bug?

SOLVED!

Helps replase #cgo pkg-config: pango to #cgo pkg-config: pango gobject-2.0 in pango-layout.go and pango-attributes.go.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.