Atterratio / obs-gphoto

Allows connect DSLR cameras with obs-studio through gPhoto on Linux
GNU General Public License v2.0
43 stars 16 forks source link

Neither configuration option functional for Snap package #19

Open n8willis opened 4 years ago

n8willis commented 4 years ago

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).