AlexJakeGreen / wayfire-kbdd-plugin

Per-window keyboard layout for Wayfire
9 stars 2 forks source link

Build issues against latest git #8

Closed AlexJakeGreen closed 1 year ago

AlexJakeGreen commented 1 year ago
          I'm afraid we're here again, against latest git:
FAILED: src/libkbdd.so.p/kbdd.cpp.o 
ccache c++ -Isrc/libkbdd.so.p -Isrc -I../src -I/usr/include/cairo -I/usr/include/lzo -I/usrnclude/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -Isr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/pan-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFT_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGINfPIC -pthread -MD -MQ src/libkbdd.so.p/kbdd.cpp.o -MF src/libkbdd.so.p/kbdd.cpp.o.d -o src/bkbdd.so.p/kbdd.cpp.o -c ../src/kbdd.cpp
../src/kbdd.cpp:63:9: error: ‘signal_connection_t’ in namespace ‘wf’ does not name a type
   63 |     wf::signal_connection_t keyboard_focus_changed = [=] (wf::signal_data_t *data) 
      |         ^~~~~~~~~~~~~~~~~~~
../src/kbdd.cpp: In member function ‘virtual void kbdd_plugin::init()’:
../src/kbdd.cpp:88:24: error: ‘class wf::compositor_core_t’ has no member named ‘connect_sial’
   88 |         wf::get_core().connect_signal("keyboard-focus-changed", &keyboard_focus_chaed);
      |                        ^~~~~~~~~~~~~~
../src/kbdd.cpp:88:66: error: ‘keyboard_focus_changed’ was not declared in this scope
   88 |         wf::get_core().connect_signal("keyboard-focus-changed", &keyboard_focus_chaed);
      |                                                                  ^~~~~~~~~~~~~~~~~~~~
../src/kbdd.cpp: In member function ‘virtual void kbdd_plugin::fini()’:
../src/kbdd.cpp:92:24: error: ‘class wf::compositor_core_t’ has no member named ‘disconnectignal’
   92 |         wf::get_core().disconnect_signal(&keyboard_focus_changed);
      |                        ^~~~~~~~~~~~~~~~~
../src/kbdd.cpp:92:43: error: ‘keyboard_focus_changed’ was not declared in this scope
   92 |         wf::get_core().disconnect_signal(&keyboard_focus_changed);

Originally posted by @stefonarch in https://github.com/AlexJakeGreen/wayfire-kbdd-plugin/issues/6#issuecomment-1401528303

AlexJakeGreen commented 1 year ago

This looks weird: connect_sialconnect_signal keyboard_focus_changedkeyboard_focus_chaed disconnectignaldisconnect_signal

I'll try to reproduce over this weekend

stefonarch commented 1 year ago

I was still on the api0.8 branch I see, in master the "typos" are gone but basically it's the same:

./src/kbdd.cpp:63:9: error: ‘signal_connection_t’ in namespace ‘wf’ does not name a type
   63 |     wf::signal_connection_t keyboard_focus_changed = [=] (wf::signal_data_t *data) {
      |         ^~~~~~~~~~~~~~~~~~~
../src/kbdd.cpp: In member function ‘virtual void kbdd_plugin::init()’:
../src/kbdd.cpp:88:24: error: ‘class wf::compositor_core_t’ has no member named ‘connect_signal’
   88 |         wf::get_core().connect_signal("keyboard-focus-changed", &keyboard_focus_changed);
      |                        ^~~~~~~~~~~~~~
../src/kbdd.cpp:88:66: error: ‘keyboard_focus_changed’ was not declared in this scope
   88 |         wf::get_core().connect_signal("keyboard-focus-changed", &keyboard_focus_changed);
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~
../src/kbdd.cpp: In member function ‘virtual void kbdd_plugin::fini()’:
../src/kbdd.cpp:92:24: error: ‘class wf::compositor_core_t’ has no member named ‘disconnect_signal’
   92 |         wf::get_core().disconnect_signal(&keyboard_focus_changed);
      |                        ^~~~~~~~~~~~~~~~~
../src/kbdd.cpp:92:43: error: ‘keyboard_focus_changed’ was not declared in this scope
   92 |         wf::get_core().disconnect_signal(&keyboard_focus_changed);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~c
ninja: build stopped: subcommand failed.
AlexJakeGreen commented 1 year ago

Thank you for checking.

I found that API was changed in this commit https://github.com/WayfireWM/wayfire/commit/34cf0b45cb9c30920edacbbd9bccfcd25e0ac6b8

stefonarch commented 1 year ago

Thanks a lot for your work!