Skip to content

WIP: Added libmutter-6 as optional dependency

Marco Betschart requested to merge marbetschar/libinputsynth:libmutter-6 into master

Added libmutter-6 as optional dependency. Unfortunately it now fails to compile, any idea why?

$ ninja -C build
ninja: Entering directory `build'
[12/13] Compiling C object 'src/25a6634@@inputsynth_wayland_clutter@sha/inputsynth-wayland-clutter.c.o'.
FAILED: src/25a6634@@inputsynth_wayland_clutter@sha/inputsynth-wayland-clutter.c.o 
cc -Isrc/25a6634@@inputsynth_wayland_clutter@sha -Isrc -I../src -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/mutter-6/clutter -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/mutter-6/cogl -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-linux-gnu/graphene-1.0/include -I/home/USER/Projects/libinputsynth/build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g -Wall -Wextra -fPIC -pthread -mfpmath=sse -msse -msse2 -MD -MQ 'src/25a6634@@inputsynth_wayland_clutter@sha/inputsynth-wayland-clutter.c.o' -MF 'src/25a6634@@inputsynth_wayland_clutter@sha/inputsynth-wayland-clutter.c.o.d' -o 'src/25a6634@@inputsynth_wayland_clutter@sha/inputsynth-wayland-clutter.c.o' -c ../src/inputsynth-wayland-clutter.c
../src/inputsynth-wayland-clutter.c: In function ‘input_synth_wayland_clutter_init’:
../src/inputsynth-wayland-clutter.c:30:3: error: unknown type name ‘ClutterDeviceManager’; did you mean ‘ClutterStageManager’?
   30 |   ClutterDeviceManager *manager = clutter_device_manager_get_default ();
      |   ^~~~~~~~~~~~~~~~~~~~
      |   ClutterStageManager
../src/inputsynth-wayland-clutter.c:30:35: warning: implicit declaration of function ‘clutter_device_manager_get_default’; did you mean ‘clutter_stage_manager_get_default’? [-Wimplicit-function-declaration]
   30 |   ClutterDeviceManager *manager = clutter_device_manager_get_default ();
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   clutter_stage_manager_get_default
../src/inputsynth-wayland-clutter.c:30:35: warning: initialization of ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
../src/inputsynth-wayland-clutter.c:37:5: warning: implicit declaration of function ‘clutter_device_manager_create_virtual_device’; did you mean ‘clutter_seat_create_virtual_device’? [-Wimplicit-function-declaration]
   37 |     clutter_device_manager_create_virtual_device (manager,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     clutter_seat_create_virtual_device
../src/inputsynth-wayland-clutter.c:36:18: warning: assignment to ‘ClutterVirtualInputDevice *’ {aka ‘struct _ClutterVirtualInputDevice *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   36 |   self->virt_dev =
      |                  ^
ninja: build stopped: subcommand failed.

Merge request reports

Loading