Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

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 saved
and reused across invocations, thus reducing build times.


docker pull janimo/goqml-cross

Or you can build one locally from the Dockerfile.


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

docker run --rm -it -v $(pwd):/home/developer -v $GOPATH:/home/developer/gopath janimo/goqml-cross build

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.

alias goqml-cross='docker run --rm -it -v $(pwd):/home/developer -v $GOPATH:/home/developer/gopath -w $(pwd|sed "s,$GOPATH,/home/developer/gopath,") janimo/goqml-cross'


CGO specific cross-build workarounds taken from

Docker Pull Command
Source Repository