den2:[den2]:~/Downloads/obs-kmsgrab/build$ ninja
[8/9] Building C object CMakeFiles/linux-kmsgrab.dir/src/dmabuf.c.o
FAILED: CMakeFiles/linux-kmsgrab.dir/src/dmabuf.c.o
/usr/bin/cc -DHAVE_OBSCONFIG_H -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DUSE_PKEXEC -Dlinux_kmsgrab_EXPORTS -I/home/den2/Downloads/obs-kmsgrab/build -I/home/den2/Downloads/obs-kmsgrab -I/home/den2/Downloads/obs-kmsgrab/build/linux-kmsgrab_autogen/include -I/home/den2/Downloads/obs-kmsgrab/src -I/../UI/obs-frontend-api -isystem /usr/include/obs -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -fPIC -mmmx -msse -msse2 -fPIC -MD -MT CMakeFiles/linux-kmsgrab.dir/src/dmabuf.c.o -MF CMakeFiles/linux-kmsgrab.dir/src/dmabuf.c.o.d -o CMakeFiles/linux-kmsgrab.dir/src/dmabuf.c.o -c /home/den2/Downloads/obs-kmsgrab/src/dmabuf.c
/home/den2/Downloads/obs-kmsgrab/src/dmabuf.c: In function ‘dmabuf_source_open’:
/home/den2/Downloads/obs-kmsgrab/src/dmabuf.c:353:41: warning: passing argument 5 of ‘gs_texture_create_from_dmabuf’ makes integer from pointer without a cast [-Wint-conversion]
353
ctx->fbs.fb_fds + index,
~~~~^~~
int *
In file included from /usr/include/obs/obs.h:24,
from /home/den2/Downloads/obs-kmsgrab/src/xcursor-xcb.h:20,
from /home/den2/Downloads/obs-kmsgrab/src/dmabuf.c:2:
/usr/include/obs/graphics/graphics.h:973:53: note: expected ‘uint32_t’ {aka ‘unsigned int’} but argument is of type ‘int ’
973 | enum gs_color_format color_format, uint32_t n_planes, const int fds,
| ~~~^~
/home/den2/Downloads/obs-kmsgrab/src/dmabuf.c:350:24: error: too few arguments to function ‘gs_texture_create_from_dmabuf’
350 | ctx->texture = gs_texture_create_from_dmabuf(fb->width, fb->height,
| ^~~~~~~~~
/usr/include/obs/graphics/graphics.h:971:22: note: declared here
971 | EXPORT gs_texture_t *gs_texture_create_from_dmabuf(
| ^~~~~~~~~
ninja: build stopped: subcommand failed.
~~~~^~~In file included from /usr/include/obs/obs.h:24, from /home/den2/Downloads/obs-kmsgrab/src/xcursor-xcb.h:20, from /home/den2/Downloads/obs-kmsgrab/src/dmabuf.c:2: /usr/include/obs/graphics/graphics.h:973:53: note: expected ‘uint32_t’ {aka ‘unsigned int’} but argument is of type ‘int ’ 973 | enum gs_color_format color_format, uint32_t n_planes, const int fds, |
~~~^~/home/den2/Downloads/obs-kmsgrab/src/dmabuf.c:350:24: error: too few arguments to function ‘gs_texture_create_from_dmabuf’ 350 | ctx->texture = gs_texture_create_from_dmabuf(fb->width, fb->height, | ^~~~~~~~~ /usr/include/obs/graphics/graphics.h:971:22: note: declared here 971 | EXPORT gs_texture_t *gs_texture_create_from_dmabuf( | ^~~~~~~~~ ninja: build stopped: subcommand failed.