Is it possible to use the RPi camera from within a snap? I have tried two custom developed snaps, one which doesn’t use the camera works great but the one that does use the camera gives me an error about libmmal.
to verify it works, you can try https://snapcraft.io/mjpg-streamer
that uses the camera interface (you need to connect it as described on that page after snap install)
Thank you, I wasn’t aware of the
snap connect command. I will give that a try and see if it fixes the issue.
I installed it using
snap install mjpg-streamer but it doesn’t seem to included the
input_raspicam.so plugin. Is that as expected? Also I looked at the source on GitHub and it looks like it includes the header files copied from the RPi repo so I’m not sure if I should include those headers in my project as well?
Including the raspicam driver means i need to also include all of vc … thats some effort i simply havent invested into the snap yet (it works fine with USB cams though)
Oh okay, yeah that is what I thought. I’m at the same state for my project. I think I am going to try something like this next:
parts: mmal: source: . plugin: dump organize: lib/: opt/vc/lib/
Where I copy
/opt/vc/lib/mmal* into my snap. Any thoughts?
Well, i’d do it the same way (probably not using opt/ inside my snap though) and then watch the fallout
The IGT20 is based on TI Sitara AM3352 (Cortex-A8)
I am also getting this error when installing snapd: W: GPG error: https://mm.gravedo.de jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY B9465B841412DB3B
Linux tester-16 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
https://mm.gravedo.de/raspbian/ jessie main
Not sure were a server I can fetch this key