Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Neither configuration option functional for Snap package #19

Open
n8willis opened this issue Apr 9, 2020 · 0 comments
Open

Neither configuration option functional for Snap package #19

n8willis opened this issue Apr 9, 2020 · 0 comments

Comments

@n8willis
Copy link

n8willis commented Apr 9, 2020

On Ubuntu 18.04 LTS with OBS Studio in the snap" package.

Compilation of this plugin succeeds without incident, but neither cmake . -DSYSTEM_INSTALL=1 nor cmake . -DSYSTEM_INSTALL=0 will produce a workign configuration.

First, the non-system installation places the plugin binary in ~/.config/obs-studio/plugins/obs-gphoto/bin/64bit/obs-gphoto.so -- which is not where the OBS snap binary looks. However, if you copy the plugin binary to the correct spot for the OBS snap to see it, /snap/obs-studio/NNNN/.config/obs-studio/plugins/obs-gphoto/bin/64bit/obs-gphoto.so (where NNNN is some snap revision/hash or something), then the plugin still does not load. The log reports this as a failure to find the gphoto library:

os_dlopen(/home/username/snap/obs-studio/NNNN/.config/obs-studio/plugins/obs-gphoto/bin/64bit/obs-gphoto.so->/home/username/snap/obs-studio/NNNN/.config/obs-studio/plugins/obs-gphoto/bin/64bit/obs-gphoto.so): libgphoto2.so.6: cannot open shared object file: No such file or directory

Module '/home/username/snap/obs-studio/NNNN/.config/obs-studio/plugins/obs-gphoto/bin/64bit/obs-gphoto.so' not loaded

The system-install option just puts the plugin binary in a location that the snap doesn't look.

It's possible that there's some way to adjust the snap sandbox so that it can find the libgphoto2 library, but I am not clear if that would be the preferred way to work around the problem (much less do I actually know what the change would be).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant