From 69ff38cb7fee830f587b3d6ac660459dec30e0d7 Mon Sep 17 00:00:00 2001 From: Daniel Buchmann Date: Fri, 21 Jul 2023 14:29:34 +0200 Subject: [PATCH 1/6] initial instructions --- docs/BUILDING-FEDORA-37.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/BUILDING-FEDORA-37.md diff --git a/docs/BUILDING-FEDORA-37.md b/docs/BUILDING-FEDORA-37.md new file mode 100644 index 00000000..4a9e39ea --- /dev/null +++ b/docs/BUILDING-FEDORA-37.md @@ -0,0 +1,23 @@ +## Instructions for building the plugin on Fedora 37 + +Make sure you have the following packages installed: + +- clang +- cmake +- obs-studio-devel +- opencv-devel +- qt6-qtbase-devel + +_As an unprivileged user:_ +Clone the repository, then use the following command to compile: `.github/scripts/build-linux --skip-deps` + +_As a privileged user (root):_ +You then need to copy the plugin binary to `/usr/lib64/obs-plugins`: +``` +# cp build_x86_64/obs-backgroundremoval.so /usr/lib64/obs-plugins/ +``` + +And copy the contents of the [data](../data) directory to `/usr/share/obs/obs-plugins/obs-backgroundremoval`: +``` +# cp -r data /usr/share/obs/obs-plugins/obs-backgroundremoval +``` From f219e9a8675a04d65de33f8fe600ea8dc1fb65b7 Mon Sep 17 00:00:00 2001 From: Daniel Buchmann Date: Fri, 21 Jul 2023 15:41:24 +0200 Subject: [PATCH 2/6] updated instructions --- docs/BUILDING-FEDORA.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/BUILDING-FEDORA.md diff --git a/docs/BUILDING-FEDORA.md b/docs/BUILDING-FEDORA.md new file mode 100644 index 00000000..25bf26b7 --- /dev/null +++ b/docs/BUILDING-FEDORA.md @@ -0,0 +1,27 @@ +## Instructions for building the plugin on Fedora 37 + +Make sure you have the following packages installed: + +- cmake +- curl-devel +- gcc-c++ +- libxkbcommon-devel +- ninja-build +- obs-studio-devel +- opencv-devel +- qt6-qtbase-devel + +_As an unprivileged user:_ +Clone the repository. Don't forget to checkout the submodules: +``` +git submodule init +git submodule update +``` +Before you compile, edit `cmake/linux/compilerconfig.cmake`, find this line: `set(_obs_gcc_c_options` and add the following line to the list of options: +``` + -fPIC +``` +Then use the following command to compile: `.github/scripts/build-linux --skip-deps` + +_As a privileged user (root):_ +Finally, install the necessary files into the system directories, by issuing this command: `cmake --install build_x86_64 --prefix /usr` From 46fa9e51121216edf5d0c41830c246f592ca0de7 Mon Sep 17 00:00:00 2001 From: Daniel Buchmann Date: Fri, 21 Jul 2023 15:52:16 +0200 Subject: [PATCH 3/6] more updates and remove old file --- docs/BUILDING-FEDORA-37.md | 23 ----------------------- docs/BUILDING-FEDORA.md | 36 ++++++++++++++++++++++-------------- 2 files changed, 22 insertions(+), 37 deletions(-) delete mode 100644 docs/BUILDING-FEDORA-37.md diff --git a/docs/BUILDING-FEDORA-37.md b/docs/BUILDING-FEDORA-37.md deleted file mode 100644 index 4a9e39ea..00000000 --- a/docs/BUILDING-FEDORA-37.md +++ /dev/null @@ -1,23 +0,0 @@ -## Instructions for building the plugin on Fedora 37 - -Make sure you have the following packages installed: - -- clang -- cmake -- obs-studio-devel -- opencv-devel -- qt6-qtbase-devel - -_As an unprivileged user:_ -Clone the repository, then use the following command to compile: `.github/scripts/build-linux --skip-deps` - -_As a privileged user (root):_ -You then need to copy the plugin binary to `/usr/lib64/obs-plugins`: -``` -# cp build_x86_64/obs-backgroundremoval.so /usr/lib64/obs-plugins/ -``` - -And copy the contents of the [data](../data) directory to `/usr/share/obs/obs-plugins/obs-backgroundremoval`: -``` -# cp -r data /usr/share/obs/obs-plugins/obs-backgroundremoval -``` diff --git a/docs/BUILDING-FEDORA.md b/docs/BUILDING-FEDORA.md index 25bf26b7..2dbe817b 100644 --- a/docs/BUILDING-FEDORA.md +++ b/docs/BUILDING-FEDORA.md @@ -1,27 +1,35 @@ ## Instructions for building the plugin on Fedora 37 -Make sure you have the following packages installed: +First, you have to install the development tools: +``` +sudo dnf groupinstall "Development Tools" +``` + +Then, make sure you have the dependencies of this plugin installed: -- cmake -- curl-devel -- gcc-c++ -- libxkbcommon-devel -- ninja-build -- obs-studio-devel -- opencv-devel -- qt6-qtbase-devel +``` +sudo dnf install cmake gcc-c++ libxkbcommon-devel ninja-build obs-studio-devel opencv-devel qt6-qtbase-devel +``` _As an unprivileged user:_ -Clone the repository. Don't forget to checkout the submodules: +Clone the repository and set up the submodules: ``` -git submodule init -git submodule update +git clone https://github.com/royshil/obs-backgroundremoval.git +cd obs-backgroundremoval +git submodule update --init ``` + Before you compile, edit `cmake/linux/compilerconfig.cmake`, find this line: `set(_obs_gcc_c_options` and add the following line to the list of options: ``` -fPIC ``` -Then use the following command to compile: `.github/scripts/build-linux --skip-deps` +Then use the following command to compile: +``` +.github/scripts/build-linux --skip-deps +``` _As a privileged user (root):_ -Finally, install the necessary files into the system directories, by issuing this command: `cmake --install build_x86_64 --prefix /usr` +Finally, install the necessary files into the system directories, by issuing this command: +``` +sudo cmake --install build_x86_64 --prefix /usr +``` From d9aa4f07a851eef31a4012636a1e3d7f3ea34ebc Mon Sep 17 00:00:00 2001 From: Daniel Buchmann Date: Fri, 21 Jul 2023 15:53:39 +0200 Subject: [PATCH 4/6] remove (un)privileged user lines --- docs/BUILDING-FEDORA.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/BUILDING-FEDORA.md b/docs/BUILDING-FEDORA.md index 2dbe817b..4d495ff0 100644 --- a/docs/BUILDING-FEDORA.md +++ b/docs/BUILDING-FEDORA.md @@ -11,7 +11,6 @@ Then, make sure you have the dependencies of this plugin installed: sudo dnf install cmake gcc-c++ libxkbcommon-devel ninja-build obs-studio-devel opencv-devel qt6-qtbase-devel ``` -_As an unprivileged user:_ Clone the repository and set up the submodules: ``` git clone https://github.com/royshil/obs-backgroundremoval.git @@ -28,7 +27,6 @@ Then use the following command to compile: .github/scripts/build-linux --skip-deps ``` -_As a privileged user (root):_ Finally, install the necessary files into the system directories, by issuing this command: ``` sudo cmake --install build_x86_64 --prefix /usr From 89fca921605f061f0ee0c5feb11fc06d63d6bf9c Mon Sep 17 00:00:00 2001 From: Daniel Buchmann Date: Fri, 21 Jul 2023 16:01:00 +0200 Subject: [PATCH 5/6] Remove unnecessary -fPIC --- docs/BUILDING-FEDORA.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/BUILDING-FEDORA.md b/docs/BUILDING-FEDORA.md index 4d495ff0..7b5ed07b 100644 --- a/docs/BUILDING-FEDORA.md +++ b/docs/BUILDING-FEDORA.md @@ -18,11 +18,7 @@ cd obs-backgroundremoval git submodule update --init ``` -Before you compile, edit `cmake/linux/compilerconfig.cmake`, find this line: `set(_obs_gcc_c_options` and add the following line to the list of options: -``` - -fPIC -``` -Then use the following command to compile: +Run the following command to compile the plugin: ``` .github/scripts/build-linux --skip-deps ``` From 642bafa031b020e7e37ae6c097ec0cd1d650ad50 Mon Sep 17 00:00:00 2001 From: Daniel Buchmann Date: Fri, 21 Jul 2023 16:08:22 +0200 Subject: [PATCH 6/6] Last-minute changes --- docs/BUILDING-FEDORA.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/BUILDING-FEDORA.md b/docs/BUILDING-FEDORA.md index 7b5ed07b..12aa23c3 100644 --- a/docs/BUILDING-FEDORA.md +++ b/docs/BUILDING-FEDORA.md @@ -1,4 +1,4 @@ -## Instructions for building the plugin on Fedora 37 +## Instructions for building the plugin on Fedora First, you have to install the development tools: ``` @@ -8,7 +8,7 @@ sudo dnf groupinstall "Development Tools" Then, make sure you have the dependencies of this plugin installed: ``` -sudo dnf install cmake gcc-c++ libxkbcommon-devel ninja-build obs-studio-devel opencv-devel qt6-qtbase-devel +sudo dnf install cmake gcc-c++ ninja-build obs-studio-devel opencv-devel qt6-qtbase-devel ``` Clone the repository and set up the submodules: