error when compileing with xwiiremote ubuntu
i installed the libxwiimote2 libxwiimote-dev xwiimote packages on ubuntu 22.04 this is the make output
[ 4%] Automatic MOC for target plasma-remotecontrollers
[ 4%] Built target plasma-remotecontrollers_autogen
Consolidate compiler generated dependencies of target plasma-remotecontrollers
[ 9%] Building CXX object CMakeFiles/plasma-remotecontrollers.dir/src/wiimote/wiimote.cpp.o
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp: In constructor ‘Wiimote::Wiimote(xwii_iface*, QString)’:
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:21:14: error: ‘i18nc’ was not declared in this scope
21 | m_name = i18nc("What Nintendo Wii remote controllers are called", "Wii Remote");
| ^~~~~
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp: In member function ‘virtual void Wiimote::watchEvents()’:
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:110:14: error: ‘XWII_EVENT_GONE’ was not declared in this scope; did you mean ‘XWII_EVENT_NUM’?
110 | case XWII_EVENT_GONE:
| ^~~~~~~~~~~~~~~
| XWII_EVENT_NUM
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:121:14: error: ‘XWII_EVENT_NUNCHUK_KEY’ was not declared in this scope; did you mean ‘XWII_EVENT_KEY’?
121 | case XWII_EVENT_NUNCHUK_KEY:
| ^~~~~~~~~~~~~~~~~~~~~~
| XWII_EVENT_KEY
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:122:14: error: ‘XWII_EVENT_NUNCHUK_MOVE’ was not declared in this scope
122 | case XWII_EVENT_NUNCHUK_MOVE:
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:129:14: error: ‘XWII_EVENT_CLASSIC_CONTROLLER_KEY’ was not declared in this scope; did you mean ‘XWII_EVENT_PRO_CONTROLLER_KEY’?
129 | case XWII_EVENT_CLASSIC_CONTROLLER_KEY:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| XWII_EVENT_PRO_CONTROLLER_KEY
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:130:14: error: ‘XWII_EVENT_CLASSIC_CONTROLLER_MOVE’ was not declared in this scope; did you mean ‘XWII_EVENT_PRO_CONTROLLER_MOVE’?
130 | case XWII_EVENT_CLASSIC_CONTROLLER_MOVE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| XWII_EVENT_PRO_CONTROLLER_MOVE
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:134:14: error: ‘XWII_EVENT_GUITAR_KEY’ was not declared in this scope; did you mean ‘XWII_EVENT_KEY’?
134 | case XWII_EVENT_GUITAR_KEY:
| ^~~~~~~~~~~~~~~~~~~~~
| XWII_EVENT_KEY
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:135:14: error: ‘XWII_EVENT_GUITAR_MOVE’ was not declared in this scope
135 | case XWII_EVENT_GUITAR_MOVE:
| ^~~~~~~~~~~~~~~~~~~~~~
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:136:14: error: ‘XWII_EVENT_DRUMS_KEY’ was not declared in this scope; did you mean ‘XWII_EVENT_KEY’?
136 | case XWII_EVENT_DRUMS_KEY:
| ^~~~~~~~~~~~~~~~~~~~
| XWII_EVENT_KEY
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:137:14: error: ‘XWII_EVENT_DRUMS_MOVE’ was not declared in this scope
137 | case XWII_EVENT_DRUMS_MOVE:
| ^~~~~~~~~~~~~~~~~~~~~
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp: In member function ‘void Wiimote::handleNunchuk(xwii_event*)’:
/home/bigs/plasma-remotecontrollers/src/wiimote/wiimote.cpp:187:24: error: ‘XWII_EVENT_NUNCHUK_MOVE’ was not declared in this scope
187 | if (event->type == XWII_EVENT_NUNCHUK_MOVE) {
| ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/plasma-remotecontrollers.dir/build.make:290: CMakeFiles/plasma-remotecontrollers.dir/src/wiimote/wiimote.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:246: CMakeFiles/plasma-remotecontrollers.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Edited by luke egan