Package Details: wlrobs-hg r75.b8668b4d6d6d-1

Git Clone URL: https://aur.archlinux.org/wlrobs-hg.git (read-only, click to copy)
Package Base: wlrobs-hg
Description: An obs-studio plugin that allows you to screen capture on wlroots based wayland compositors
Upstream URL: https://hg.sr.ht/~scoopta/wlrobs
Keywords: obs-studio wayland wlroots
Licenses: GPL-3.0-only
Conflicts: wlrobs
Provides: wlrobs
Submitter: klardotsh
Maintainer: KafCoppelia
Last Packager: KafCoppelia
Votes: 15
Popularity: 1.38
First Submitted: 2019-06-21 02:18 (UTC)
Last Updated: 2025-01-01 02:48 (UTC)

Latest Comments

1 2 Next › Last »

KafCoppelia commented on 2025-01-01 02:51 (UTC)

Thank you for your contributions, @lilydjwg & @trinitronx.

lilydjwg commented on 2024-12-28 02:43 (UTC)

Hi, please move wlroots from depends to makedepends. It doesn't depend on any particular wlroots once built, and some wlroots packages (e.g. wlroots0.17 in [extra]) don't provides wlroots.

trinitronx commented on 2024-12-26 18:33 (UTC)

This build error was a result of both -Wall (as shipped in libobs.pc pkg-config's Cflags), and setting _FORTIFY_SOURCE > 0 (which enables the warn_unused_result function attribute on ftruncate()). Arch Linux's devtools previously set it to 2 by default, but recently upgraded it to level 3 (-D_FORTIFY_SOURCE=3 in /usr/share/devtools/makepkg.conf.d/x86_64*.conf).

Upstream has pushed a fix in b8668b4d6d6d. I can verify that this now builds without the unused-result warning & error (with -Wall).

Toni500 commented on 2024-12-20 18:22 (UTC)

please add export CFLAGS="-Wno-error" in build() for the moment since meson setup build -Dwerror=false doesn't work

lilydjwg commented on 2024-12-20 14:12 (UTC)

Yes, because obs-studio ships -Werror in their .pc files. The user needs to remove them to build.

KafCoppelia commented on 2024-12-20 14:01 (UTC) (edited on 2024-12-20 14:02 (UTC) by KafCoppelia)

However, I only occasionally get it to compile successfully according to the upstream instructions. And even if I added additional build flags(see issue), I still got the following error:

ninja: Entering directory `build'                                                                                                                                                                                                                    
[6/7] Compiling C object libwlrobs.so.p/src_scpy_source.c.o
FAILED: libwlrobs.so.p/src_scpy_source.c.o 
ccache cc -Ilibwlrobs.so.p -I. -I.. -I../inc -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O3 -DENABLE_SCPY -D_GNU_SOURCE -DENABLE_DMABUF -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -fPIC -std=gnu17 -fPIC -fvisibility=hidden -fopenmp-simd -Werror -MD -MQ libwlrobs.so.p/src_scpy_source.c.o -MF libwlrobs.so.p/src_scpy_source.c.o.d -o libwlrobs.so.p/src_scpy_source.c.o -c ../src/scpy_source.c
../src/scpy_source.c: 在函数‘buffer’中:
../src/scpy_source.c:241:9: 错误:ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
  241 |         ftruncate(this->frame->fd, stride * height);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1:所有的警告都被当作是错误
ninja: build stopped: subcommand failed.

The same compilation error also occurs in AUR wlrobs.

lilydjwg commented on 2024-12-20 05:52 (UTC) (edited on 2024-12-20 05:53 (UTC) by lilydjwg)

It doesn't seem necessary to depend wlroots at runtime?

bkb commented on 2021-11-03 15:14 (UTC) (edited on 2021-11-03 15:18 (UTC) by bkb)

Having a systematic segmentation fault at start after adding scpy or dmabuf in a scene (obs stable and wlrobs-hg)

Needs to uninstall hg; launch obs; delete from scene; reinstall hg; reboot obs. To get OBS working

msrd0 commented on 2021-07-08 15:27 (UTC)

It looks like this compiles fine with the obs-studio package again, no need for obs-studio-git anymore. This finally includes wayland preview support.

PedroHLC commented on 2021-03-15 13:57 (UTC)

Note: Since commit 5f1c794e4614, you need to build this against an obs-studio with commit 7867d16, which while I was writing this isn't available in the [community]'s 26.1.2-1. So build it against obs-studio-git for now.