I want to make a snap out of an executable.
The executable itself is for ARM architecture, so I am doing a x-build with cmake on my ubuntu 20.04 host system.
If I copy over the executable to my embedded target system, it starts and works.
My knowledge so far is, I could make a snap by giving the right cmake parameters etc. to the snapcraft.yaml file OR to somehow throw the already built executable in the snap. For the last one there is this documentation: https://snapcraft.io/docs/pre-built-apps which I try to stick to.
So I figured out all the *.so dependencies and simply put all of them together with the executable itself into a tar.gz file and gave the path to it into the source of the part:
It is unable to pull the source if I simply execute “snapcraft” from the directory withing the snapcraft.yaml and the mentioned archive.
Can you help me spot the errors?