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

ninja command fails #13

Open
laqyx opened this issue Jun 29, 2022 · 0 comments
Open

ninja command fails #13

laqyx opened this issue Jun 29, 2022 · 0 comments

Comments

@laqyx
Copy link

laqyx commented Jun 29, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant