Hey, I’ve made a Docker image for cross-compiling any unsupported snap on the armhf architecture. I’m using it routinely to build my
node.js based snaps, which require native compilation and do not offer native snapcraft cross-compile support.
You’ll find the instructions here: https://github.com/dawidcrivelli/snapcraft_armhf . The readme supposes you have your sources in a
src subfolder, but that’s very easily changed. Just use change the line
docker run -d --rm -v $PWD/build/armhf:/build snaparm sh -c "snapcraft clean && snapcraft"
docker run -d --rm -v ANY_ABSOLUTE_PATH:/build snaparm sh -c "snapcraft clean && snapcraft
You’ll find the compiled
_armhf.snap file in the path you specified