hikari wayland compositor (https://hikari.acmelabs.space)
#45Some wlroots errors about cursor.c
Hello. Looked at hikari, it looks nice, and I want to build it from source, without the X support. Also built the wlroots and libucl. But while building hikari, I get many errors about the cursor.c file:
In file included from include/hikari/output.h:10,
from src/cursor.c:12:
/usr/include/wlr/types/wlr_surface.h:1:2: warning: #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h." [-Wcpp]
1 | #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h."
| ^~~~~~~
In file included from include/hikari/dnd_mode.h:4,
from include/hikari/server.h:14,
from src/cursor.c:13:
include/hikari/mode.h:13:48: warning: 'struct wlr_event_keyboard_key' declared inside parameter list will not be visible outside of this definition or declaration
13 | struct hikari_keyboard *keyboard, struct wlr_event_keyboard_key *event);
| ^~~~~~~~~~~~~~~~~~~~~~
include/hikari/mode.h:18:44: warning: 'struct wlr_event_pointer_button' declared inside parameter list will not be visible outside of this definition or declaration
18 | struct hikari_cursor *cursor, struct wlr_event_pointer_button *event);
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/hikari/indicator_bar.h:4,
from include/hikari/indicator.h:5,
from include/hikari/server.h:16:
/usr/include/wlr/types/wlr_surface.h:1:2: warning: #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h." [-Wcpp]
1 | #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h."
| ^~~~~~~
src/cursor.c: In function 'motion_absolute_handler':
src/cursor.c:224:32: error: invalid use of undefined type 'struct wlr_event_pointer_motion_absolute'
224 | cursor->wlr_cursor, event->device, event->x, event->y);
| ^~
src/cursor.c:224:47: error: invalid use of undefined type 'struct wlr_event_pointer_motion_absolute'
224 | cursor->wlr_cursor, event->device, event->x, event->y);
| ^~
src/cursor.c:224:57: error: invalid use of undefined type 'struct wlr_event_pointer_motion_absolute'
224 | cursor->wlr_cursor, event->device, event->x, event->y);
| ^~
src/cursor.c:226:40: error: invalid use of undefined type 'struct wlr_event_pointer_motion_absolute'
226 | hikari_server.mode->cursor_move(event->time_msec);
| ^~
src/cursor.c: In function 'motion_handler':
src/cursor.c:247:32: error: invalid use of undefined type 'struct wlr_event_pointer_motion'
247 | cursor->wlr_cursor, event->device, event->delta_x, event->delta_y);
| ^~
src/cursor.c:247:47: error: invalid use of undefined type 'struct wlr_event_pointer_motion'
247 | cursor->wlr_cursor, event->device, event->delta_x, event->delta_y);
| ^~
src/cursor.c:247:63: error: invalid use of undefined type 'struct wlr_event_pointer_motion'
247 | cursor->wlr_cursor, event->device, event->delta_x, event->delta_y);
| ^~
src/cursor.c:249:40: error: invalid use of undefined type 'struct wlr_event_pointer_motion'
249 | hikari_server.mode->cursor_move(event->time_msec);
| ^~
src/cursor.c: In function 'button_handler':
src/cursor.c:260:46: warning: passing argument 2 of 'hikari_server.mode->button_handler' from incompatible pointer type [-Wincompatible-pointer-types]
260 | hikari_server.mode->button_handler(cursor, event);
| ^~~~~
| |
| struct wlr_event_pointer_button *
src/cursor.c:260:46: note: expected 'struct wlr_event_pointer_button *' but argument is of type 'struct wlr_event_pointer_button *'
src/cursor.c: In function 'axis_handler':
src/cursor.c:271:12: error: invalid use of undefined type 'struct wlr_event_pointer_axis'
271 | event->time_msec,
| ^~
src/cursor.c:272:12: error: invalid use of undefined type 'struct wlr_event_pointer_axis'
272 | event->orientation,
| ^~
src/cursor.c:273:12: error: invalid use of undefined type 'struct wlr_event_pointer_axis'
273 | event->delta,
| ^~
src/cursor.c:274:12: error: invalid use of undefined type 'struct wlr_event_pointer_axis'
274 | event->delta_discrete,
| ^~
src/cursor.c:275:12: error: invalid use of undefined type 'struct wlr_event_pointer_axis'
275 | event->source);
I use the 0.16.0 version or wlroots. Is it supposed to be older?