From abd67cc275f619b696b997f5c66c412ed761c9f9 Mon Sep 17 00:00:00 2001 From: Lorenzo Prosseda Date: Tue, 14 Apr 2020 19:36:03 +0200 Subject: [PATCH 1/3] Added compile instruction for Fedora/RHEL/CentOS --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a90ad3..36675c4 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ issue #17][vcam#17]. [run-v4l2loopback]: https://github.com/umlaeute/v4l2loopback#run -## Build +## Build [Debian] - Install QT @@ -52,3 +52,50 @@ cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr make -j4 sudo make install ``` + +## Build [RHEL/CentOS] + +#### Dependencies + +If you are compiling this on Fedora, I hardly recommend to install all the dependencies inside a container with the aid of `toolbox` + +- `Development Tools` group + - `make` + - `cmake` + - `gcc` +- `qt5-qtbase-devel` +- RPM Fusion Free + - `obs-studio-libs` + - `obs-studio-devel` + + +#### Build + +Download sources and prepare the build files + +```bash +git clone --recursive https://github.com/obsproject/obs-studio.git +git clone https://github.com/CatxFish/obs-v4l2sink.git +cd obs-v4l2sink +mkdir build && cd build +``` + +Compile and install the plugin + +```bash +cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr -DLIBOBS_LIB="/usr/lib64/libobs.so.0" -DCMAKE_INSTALL_PREFIX="${HOME}/.config/obs-studio/plugins/v4l2sink" .. +make -j4 +make install +``` + +The plugin will be installed inside `~/.config/obs-studio/plugins` + +#### Flatpak OBS + +If you are using Flatpak's OBS version, copy the plugin's files inside the application folder: + +```bash +sudo cp -r $HOME/.config/obs-studio/plugins/v4l2sink/* /var/lib/flatpak/app/com.obsproject.Studio/x86_64/stable/active/files/ +``` + +Open OBS and navigate to the "Tools" drop-down: you will now see the V4L2 video output From 5aa680df3b5051a47421b3bc51123b0446dedaf6 Mon Sep 17 00:00:00 2001 From: Lorenzo Prosseda Date: Thu, 16 Apr 2020 14:37:18 +0200 Subject: [PATCH 2/3] Rephrased some of RHEL/Fedora build instructions --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 36675c4..167e516 100644 --- a/README.md +++ b/README.md @@ -57,14 +57,14 @@ sudo make install #### Dependencies -If you are compiling this on Fedora, I hardly recommend to install all the dependencies inside a container with the aid of `toolbox` +If you are compiling this on Fedora, I would suggest installing the following dependencies inside a `toolbox` ([here](https://fedoramagazine.org/a-quick-introduction-to-toolbox-on-fedora/) you can learn more about it) -- `Development Tools` group +- `Development Tools` group (install with `sudo yum groupinstall "Development Tools"`) - `make` - `cmake` - `gcc` - `qt5-qtbase-devel` -- RPM Fusion Free +- RPM Fusion Free ([here](https://rpmfusion.org/Configuration) you can learn how to enable this repository) - `obs-studio-libs` - `obs-studio-devel` @@ -92,10 +92,10 @@ The plugin will be installed inside `~/.config/obs-studio/plugins` #### Flatpak OBS -If you are using Flatpak's OBS version, copy the plugin's files inside the application folder: +If you are using the Flatpak OBS version, copy the plugin's files into the application folder: ```bash sudo cp -r $HOME/.config/obs-studio/plugins/v4l2sink/* /var/lib/flatpak/app/com.obsproject.Studio/x86_64/stable/active/files/ ``` -Open OBS and navigate to the "Tools" drop-down: you will now see the V4L2 video output +Open OBS and navigate to the "Tools" drop-down: you should now see the V4L2 video output From c3cf32f13cc3122abc97d09074bc2ba0ea5da7be Mon Sep 17 00:00:00 2001 From: Lorenzo Prosseda Date: Sun, 20 Sep 2020 00:19:01 +0200 Subject: [PATCH 3/3] Fixed README dependencies section --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 167e516..6f6d842 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,15 @@ sudo make install If you are compiling this on Fedora, I would suggest installing the following dependencies inside a `toolbox` ([here](https://fedoramagazine.org/a-quick-introduction-to-toolbox-on-fedora/) you can learn more about it) +- QT Development, the package has the following name: + - `qt5-qtbase-devel` + - `Development Tools` group (install with `sudo yum groupinstall "Development Tools"`) - - `make` + +- The following packages are not included in the Development Tools group, but are required: - `cmake` - - `gcc` -- `qt5-qtbase-devel` + - `g++` + - RPM Fusion Free ([here](https://rpmfusion.org/Configuration) you can learn how to enable this repository) - `obs-studio-libs` - `obs-studio-devel`