obs-v4l2sink icon indicating copy to clipboard operation
obs-v4l2sink copied to clipboard

Added compile instruction for Fedora/RHEL/CentOS

Open Procsiab opened this issue 4 years ago • 6 comments

Hi, do you mind to include these build instructions for Fedora/RHEL/CentOS based distros? I tested it on Fedora 31 and CentOS 8, and your plug in works like a charm on those.

Procsiab avatar Apr 14 '20 17:04 Procsiab

I'm not sure you mean to say what you are saying here:

I hardly recommend to install all the dependencies inside a container

Do you recommend a container build? You are saying that you don't. In any case, the preference for container (or, on Fedora: mock) over straight on your box is probably independent of the distro, just like the preference of user install (which you describe) over system install (which others describe for other distros).

mjg avatar Apr 16 '20 09:04 mjg

You are definetly right: I meant "inside a toolbox container"; toolbox is a tool that mirrors your root and mounts your home inside a podman container, using the space inside your home directory: this way you can install different dependencies at different versions without cluttering the system. This program can be downloaded from the official RHEL/Fedora repos. I will rephrase that paragraph.

Procsiab avatar Apr 16 '20 11:04 Procsiab

I followed these instructions, only thing you need to do is move the .so file out of the directory structure. Works great, thank you!

LightGuard avatar Apr 26 '20 03:04 LightGuard

I also made one because I didn't see this: https://github.com/CatxFish/obs-v4l2sink/compare/master...DaveWK:master

one thing I noticed is I think you can just get rid of the usage of ObsPluginHelpers.cmake which interestingly enough is in the Fedora dev package but not Ubuntu.. both of them have LibObsConfig.cmake which you can use to trim down the find's.. by using the dev modules I was able to not need to wait and compile OBS Studio, and didnt have to figure out the deps for it..

DaveWK avatar May 03 '20 14:05 DaveWK

I think if you wanted to combine your docker approach w/ mine you'd be able to save some compile time and time to download those deps.. by reworking the cmake to use the alternate cmake it was just: sudo dnf install obs-studio-libs qt5-qtbase-devel or: sudo apt install qtbase5-dev libobs-dev

DaveWK avatar May 03 '20 14:05 DaveWK

I think if you wanted to combine your docker approach w/ mine you'd be able to save some compile time and time to download those deps.. by reworking the cmake to use the alternate cmake it was just: sudo dnf install obs-studio-libs qt5-qtbase-devel or: sudo apt install qtbase5-dev libobs-dev

Indeed a better approach to grab the needed dependencies! Thanks for sharing! I will look into editing the PR to make the install process more streamlined.

Procsiab avatar May 03 '20 15:05 Procsiab