I still have not tested on Windows; I did look up and find some 
documentation on how to get go and gtk installed and working together on 
Windows, and it basically boils down to installing the linux version of go 
under mingw.

https://github.com/conformal/gotk3/wiki/Installing-on-Windows
http://stackoverflow.com/questions/16999498/how-to-set-up-gtk-for-go-on-win-7

You might say, "but Howard, you posted links for go-gtk and gotk3, what's 
up with that?"

Well, other update, I added preliminary gotk3 support last night. So now we 
have three backends, two of which are partially broken. Fun. Shiny = 
framebuffer, eventloop, no widgets. go-gtk = framebuffer, eventloop, 
widgets. gotk3 = eventloop, widgets, no framebuffer. That is too say, even 
though as far as I can tell the code is correctly asking a GtkImage to set 
its image from the pixbuf I'm passing it, I get nothing. 

So, hey, Joe Blue from the Shiny convo earlier, if you want to showcase 
examples in the various toolkits, you could contribute some more backends! 
:-P

I tried to set it up so that gotk3 would not try to compile by default, to 
limit the introduction of new build headaches. To build it, add -tags gotk3 
nogtk2 to the build line. If on Ubuntu 14.04 like me, or a different distro 
with an early gtk3, you may need to add gtk_3_10 as well. I am slowly 
marking the example as such in the build tags so they don't auto-build, so 
in the example folder use example tag to build them.

go build -tags 'gtk_3_10 gotk3 nogtk2 example'

lsystem example compiled with the above... 18 M

go build -tags 'example'
lsystem example compiled with the above (uses go-gtk)... 7M

Hopefully the gotk3 rendering issue will be resolved shortly - if anyone 
has experience going from a golang image.Image to a rendered image on a 
GTK3 Cairo surface, I'll gladly listen.

Howard

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to