snapcrafters / obs-studio

This is a community-supported modified build of OBS Studio.
https://snapcraft.io/obs-studio
111 stars 37 forks source link

Add Looking Glass plugin #145

Closed SophieLabs closed 2 years ago

SophieLabs commented 2 years ago

I'm having an issue similar to #122 , but with a 3rd party plugin rather than opengl. I'm trying to run the Looking Glass plugin on Manjaro. I've built the plugin from source, and it works fine on the system installed OBS, but when I try to run it in the snap version, it gives me:

error: os_dlopen(/home/josh/snap/obs-studio/1273/.config/obs-studio/plugins/looking-glass-obs/bin/64bit/liblooking-glass-obs.so->/home/josh/snap/obs-studio/1273/.config/obs-studio/plugins/looking-glass-obs/bin/64bit/liblooking-glass-obs.so): /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.33' not found (required by /home/josh/snap/obs-studio/1273/.config/obs-studio/plugins/looking-glass-obs/bin/64bit/liblooking-glass-obs.so)

I'm not really sure what I'm supposed to do with LD_LIBARY_PATH/SNAP_LIBRARY_PATH mentioned in #122 . I've tried pointing them at /usr/lib which is where my libc.so seems to be, but that didn't work. I also added a symlink to /usr/lib/libc.so in ~/snap/obs-studio/1273/lib/x86_64-linux-gnu to no avail.

flexiondotorg commented 2 years ago

This is due to building and linking Looking Glass on a system with a newer glibc than is available to the snap. Not something I can fix.

However, adding the Looking Glass plugin to the snap would work. Do you fancy having a go at that @Josh-MB?

SophieLabs commented 2 years ago

I can give it a shot. Haven't used snap much, but I'll look at other similar pull requests and try to get it running

SophieLabs commented 2 years ago

I got it running locally, and have submitted a pull request: #149

flexiondotorg commented 2 years ago

Fixed via #149