CatxFish / obs-v4l2sink

obs studio output plugin for Video4Linux2 device
GNU General Public License v2.0
930 stars 99 forks source link

Added compile instruction for Fedora/RHEL/CentOS #33

Open Procsiab opened 4 years ago

Procsiab commented 4 years ago

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.

mjg commented 4 years ago

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

Procsiab commented 4 years ago

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.

LightGuard commented 4 years ago

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

DaveWK commented 4 years ago

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 commented 4 years ago

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

Procsiab commented 4 years ago

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.