This repository was archived by the owner on Dec 31, 2025. It is now read-only.
Open
Conversation
added 3 commits
August 25, 2016 10:55
Using the Snapcraft packaging tool for snappy and the snapcraft.yaml file you can now build an fswebcam snap and install on any OS with snappy installed. See http://snapcraft.io/ for more details on snappy. The current snapcraft.yaml will only work in devmode which is much more permissive than strict mode. A version using strict mode will follow soon. Steps: $ sudo apt install snapcraft $ git clone git@github.com:philroche/fswebcam.git $ snapcraft $ snapcraft install fswebcam_0_amd64.snap --devmode $ /snap/bin/fswebcam photo.jpg
To use strict mode you must connect the camera interface manually. See steps below for usage. Steps to use: $ snapcraft $ snap install fswebcam_1_amd64.snap --devmode $ sudo snap connect fswebcam:camera ubuntu-core:camera $ /snap/bin/fswebcam photo.jpg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
snapcraft.yaml added for producing snap of fswebcam
Using the Snapcraft packaging tool for snappy and the snapcraft.yaml file you can
now build an fswebcam snap and install on any OS with snappy installed.
See http://snapcraft.io/ for more details on snappy.
I have pushed the resulting snap to the snap store - https://myapps.developer.ubuntu.com/dev/click-apps/5794/ . I am currently the owner of that snap but I am happy to transfer to you.
Steps to install from store:
$ sudo snap login %YOURLAUNCHPADUSERSEMAILADDRESS%
$ snap install fswebcam
$ sudo snap connect fswebcam:camera ubuntu-core:camera
Steps to build and install from local:
$ sudo apt install snapcraft
$ git clone git@github.com:philroche/fswebcam.git
$ git checkout snap
$ snapcraft
$ snapcraft install fswebcam_0_amd64.snap --devmode
$ /snap/bin/fswebcam photo.jpg