Cross build Go QML packages to armhf

This Docker image allows easy armhf cross-builds of packages using go-qml residing in your $GOPATH.$GOPATH can be shared between the host and the container so that the binaries of the dependencies are savedand reused across invocations, thus reducing build times.

Install

docker pull janimo/goqml-cross

Or you can build one locally from the Dockerfile.

Run

Make your working directory and $GOPATH available in the container and build the contents of the package you are in.

For convenience, you could set up an alias like this which then acts like the go tool, accepting the usual go subcommands and flags. This also makes sure to switch to a subdirectory of $GOPATH in the container so that go build -i and go install work.