Those packages use cgo, so you will need a gcc-based toolchain for your target platform. Either you will have to build it yourself (doing that on Windows is probably challenging), or perhaps you can find a prebuilt gcc (good luck with that). Make sure to install the relevant OpenGL headers and libraries for your target and that your cross-compiler can find them.
Then you can just do something like (substitute for your target): CGO_ENABLED=1 CC=sparcv9-solaris2.12-gcc GOOS=solaris GOARCH=sparc64 go build foo Depending on a few other factors you might or might not need to explicitely set internal or external linking. CGO_ENABLED=1 CC=sparcv9-solaris2.12-gcc GOOS=solaris GOARCH=sparc64 go build -ldflags='-linkmode=external' foo If I were you, I would rather find a way to build natively. -- Aram Hăvărneanu -- 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.