I can not install / reinstall GTK for Go windows 7 x64. The fact is that the comrade could not cope with the above-stated task, and I decided to help (it works for me). The setting seems primitive to horror:
- On the system with the installed golang install msys2 (64 bit) with MinGW-w64
- In MinGW-w64 console, using pacman, download everything you need.
- write path to x86_64-w64-mingw32 \ bin in path
In general, all of the instructions, https://github.com/gotk3/gotk3/wiki/Installing-on-Windows with one difference: mysys is the last.
Usually this was enough and go get github.com/gotk3/gotk3/gtk worked fine and pulled the necessary package, as well as a simple examle.go from the examples worked.
But not at this time.
go get github.com/gotk3/gotk3/gtk # github.com/gotk3/gotk3/pango C:\Users\Admin\AppData\Local\Temp\go-build074518798\b034\_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-build074518798\b034\_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 returned 1 exit status For some reason, GO does not see the C function used in C. pango. Get_value_get_enum. I decided to repeat the installation at my place - I renamed the msys64 folder -> msys64_ and reinstalled it again - it works. After that I renamed Go -> Go_ and reinstalled GO, and only then I received the same error as that of my friend. Renamed Go_ back to Go again, everything works, looked at the version of the old go1.11.2 newly installed go.1.11.4. Comrade replacing my daddy with go1.11.2 did not solve the problem. The question arose, what is it all missing, the Internet is silent on the above problems. For earlier grateful for the help.