Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick instructions to compile on Fedora 37 #397

Merged
merged 6 commits into from
Jul 21, 2023
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/BUILDING-FEDORA.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Instructions for building the plugin on Fedora 37
MagnoBooter marked this conversation as resolved.
Show resolved Hide resolved

First, you have to install the development tools:
```
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need to install libxkbcommon-devel?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, maybe not? 😄 But I had an error message that looked like this:

[...]
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found WrapOpenGL: TRUE  
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
-- Found WrapVulkanHeaders: /usr/include  
[...]

But it seems to compile anyway, so I'll remove the dependency.

```

Clone the repository and set up the submodules:
```
git clone https://github.com/royshil/obs-backgroundremoval.git
cd obs-backgroundremoval
git submodule update --init
```

Run the following command to compile the plugin:
```
.github/scripts/build-linux --skip-deps
```

Finally, install the necessary files into the system directories, by issuing this command:
```
sudo cmake --install build_x86_64 --prefix /usr
```