$ go get -u github.com/karalabe/xgo
$ xgo github.com/project-iris/iris
...
$ ls -al
-rwxr-xr-x 1 root root 10899488 Sep 14 18:05 iris-android-21-arm
-rwxr-xr-x 1 root root 6442188 Sep 14 18:05 iris-darwin-386
-rwxr-xr-x 1 root root 8228756 Sep 14 18:05 iris-darwin-amd64
-rwxr-xr-x 1 root root 9532568 Sep 14 18:05 iris-linux-386
-rwxr-xr-x 1 root root 11776368 Sep 14 18:05 iris-linux-amd64
-rwxr-xr-x 1 root root 9408928 Sep 14 18:05 iris-linux-arm
-rwxr-xr-x 1 root root 7131477 Sep 14 18:05 iris-windows-386.exe
-rwxr-xr-x 1 root root 8963900 Sep 14 18:05 iris-windows-amd64.exe
$ xgo --targets=android-16/arm,android-21/arm ...
$ xgo github.com/karalabe/xgo/tests/embedded_cpp
...
$ ls -al
-rwxr-xr-x 1 root root 5052412 Sep 22 12:23 embedded_cpp-android-21-arm
-rwxr-xr-x 1 root root 617936 Sep 22 12:23 embedded_cpp-darwin-386
-rwxr-xr-x 1 root root 782032 Sep 22 12:23 embedded_cpp-darwin-amd64
-rwxr-xr-x 1 root root 954313 Sep 22 12:23 embedded_cpp-linux-386
-rwxr-xr-x 1 root root 1200355 Sep 22 12:23 embedded_cpp-linux-amd64
-rwxr-xr-x 1 root root 1017956 Sep 22 12:23 embedded_cpp-linux-arm
-rwxr-xr-x 1 root root 829376 Sep 22 12:23 embedded_cpp-windows-386.exe
-rwxr-xr-x 1 root root 1020352 Sep 22 12:23 embedded_cpp-windows-amd64.exe
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ cd $GOPATH/src // If you have multiple (I have at least 3 in there), change into any, doesn't matter
$ mkdir xgo_test
$ cd xgo_test
$ echo -e 'package main\n import "fmt"\n func main(){\nfmt.Println("Hello")\n}' > main.go
$ xgo .
...
Compiling for android-21/arm...
Compiling for linux/amd64...
Compiling for linux/386...
Compiling for linux/arm...
Compiling for windows/amd64...
Compiling for windows/386...
Compiling for darwin/amd64...
Compiling for darwin/386...
Glad it worked out. Though xgo could probably be made a bit smarter to detect this and at least provide a hint instead of plain crashing. Will do on Monday :) Cheers
go get -u github.com/karalabe/xgo
docker rmi `docker images | grep karalabe/xgo-* | awk '{print $3}'`