aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-01-30 23:42:12 +0100
committerdec05eba <dec05eba@protonmail.com>2022-01-30 23:42:12 +0100
commit9f3d6f57689f6852bac52e3709558d22aa76ccd4 (patch)
tree8f004b4ce154466d79c05be7d1a0235f99e47105
parent371e30a0b7b0c2b426452a7be1b0437edb59d98f (diff)
Remove dependency on sibs
-rw-r--r--.gitignore2
-rw-r--r--README.md3
-rwxr-xr-xbuild.sh6
3 files changed, 10 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 47f12d9..03cb7dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,6 @@ sibs-build/
compile_commands.json
tests/sibs-build/
tests/compile_commands.json
+
.clangd/
+gpu-screen-recorder-gtk
diff --git a/README.md b/README.md
index 3d3c804..33250f6 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,8 @@ where only the last few seconds are saved.
Might now work when using a compositor such as picom when using the glx backend.
## Installation
-gpu screen recorder gtk can be built using [sibs](https://git.dec05eba.com/sibs) or if you are running Arch Linux, then you can find it on aur under the name gpu-screen-recorder-gtk-git (`yay -S gpu-screen-recorder-gtk-git`). [gpu-screen-recorder](https://git.dec05eba.com/gpu-screen-recorder/) needs to be installed to use gpu screen recorder gtk.\
+Run `./build.sh` or if you are running Arch Linux, then you can find gpu screen recorder gtk on aur under the name gpu-screen-recorder-gtk-git (`yay -S gpu-screen-recorder-gtk-git`).\
+Dependencies needed when building using `build.sh`: `gtk3 libx11 libxrandr libpulse`.\
Recording monitors requires a gpu with NvFBC support (note: this is not required when recording a single window!). Normally only tesla and quadro gpus support this, but by using [nvidia-patch](https://github.com/keylase/nvidia-patch) or [nvlax](https://github.com/illnyang/nvlax) you can do this on all gpus that support nvenc as well (gpus as old as the nvidia 600 series), provided you are not using outdated gpu drivers.
## Screenshots
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..05603db
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+dependencies="gtk+-3.0 x11 xrandr libpulse"
+includes="$(pkg-config --cflags $dependencies)"
+libs="$(pkg-config --libs $dependencies)"
+g++ -o gpu-screen-recorder-gtk -O2 src/main.cpp -s $includes $libs