faxm0dem / Model01-Firmware

The "standard" Keyboardio Model 01 Firmware sketch.
GNU General Public License v3.0
0 stars 0 forks source link

compilation error using prefix layer #1

Open faxm0dem opened 6 years ago

faxm0dem commented 6 years ago
BOARD_HARDWARE_PATH="/home/fwernli/Arduino/hardware" /home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/bin//kaleidoscope-builder build-all
Building output/Model01-Firmware/Model01-Firmware (0.0.0-gv1.22-17-g6541-dirty) ...
/home/fwernli/git/Model01-Firmware/Model01-Firmware.ino: In function 'void setup()':
/home/fwernli/git/Model01-Firmware/Model01-Firmware.ino:372:36: warning: 'void kaleidoscope::HostPowerManagement::enableWakeup()' is deprecated (declared at /home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-HostPowerManagement/src/Kaleidoscope/HostPowerManagement.h:39):
------------------------------------------------------------------------
The HostPowerManagement.enableWakeup() call is not necessary anymore,
the firmware supports wakeup by default now. The line can be safely
removed.
------------------------------------------------------------------------
 [-Wdeprecated-declarations]
   HostPowerManagement.enableWakeup();
                                    ^
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-LangPack-European/src/Kaleidoscope/LangPack-European.cpp: In member function 'virtual void kaleidoscope::language::European::begin()':
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-LangPack-European/src/Kaleidoscope/LangPack-European.cpp:214:54: warning: 'static void kaleidoscope::Kaleidoscope_::useEventHandlerHook(kaleidoscope::Kaleidoscope_::eventHandlerHook)' is deprecated (declared at /home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h:177):
------------------------------------------------------------------------
The legacy plugin API based on hook registration is deprecated.

Consider upgrading your plugins, or implementing the new interface
described by `kaleidoscope::Plugin`. In particular, instead of using
`Kaleidoscope.useEventHandlerHook`, implement the
`.onKeyswitchEvent()` method instead.

If your plugins are up-to-date, and you are not a developer, it is
usually safe to ignore this message. Especally if the full error
points to a line containing `legacyLoopHook` or `legacyEventHandler`.
------------------------------------------------------------------------
 [-Wdeprecated-declarations]
   Kaleidoscope.useEventHandlerHook(legacyEventHandler);
                                                      ^
In file included from /home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-PrefixLayer/src/Kaleidoscope/PrefixLayer.cpp:19:0:
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-Ranges/src/Kaleidoscope-Ranges.h:24:6: error: expected identifier before ':' token
 enum : uint16_t {
      ^
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-Ranges/src/Kaleidoscope-Ranges.h:24:6: error: expected unqualified-id before ':' token
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-PrefixLayer/src/Kaleidoscope/PrefixLayer.cpp: In member function 'virtual void kaleidoscope::PrefixLayer::begin()':
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-PrefixLayer/src/Kaleidoscope/PrefixLayer.cpp:37:52: warning: 'static void kaleidoscope::Kaleidoscope_::useEventHandlerHook(kaleidoscope::Kaleidoscope_::eventHandlerHook)' is deprecated (declared at /home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h:177):
------------------------------------------------------------------------
The legacy plugin API based on hook registration is deprecated.

Consider upgrading your plugins, or implementing the new interface
described by `kaleidoscope::Plugin`. In particular, instead of using
`Kaleidoscope.useEventHandlerHook`, implement the
`.onKeyswitchEvent()` method instead.

If your plugins are up-to-date, and you are not a developer, it is
usually safe to ignore this message. Especally if the full error
points to a line containing `legacyLoopHook` or `legacyEventHandler`.
------------------------------------------------------------------------
 [-Wdeprecated-declarations]
   Kaleidoscope.useEventHandlerHook(eventHandlerHook);
                                                    ^
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-PrefixLayer/src/Kaleidoscope/PrefixLayer.cpp: In static member function 'static kaleidoscope::Key kaleidoscope::PrefixLayer::eventHandlerHook(kaleidoscope::Key, byte, byte, uint8_t)':
/home/fwernli/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-PrefixLayer/src/Kaleidoscope/PrefixLayer.cpp:44:52: error: 'FIRST' is not a member of 'kaleidoscope::ranges'
   if (keyToggledOn(key_state) && mapped_key.raw <= ranges::FIRST) {
                                                    ^
exit status 1
/home/fwernli/Arduino/hardware/keyboardio/avr/build-tools/makefiles//rules.mk:72: recipe for target 'build-all' failed
make: *** [build-all] Error 1

any idea @algernon ?

algernon commented 6 years ago

That.. is an interesting error, because kaleidoscope::ranges::FIRST does exist, and the PrefixLayer plugin appears to do things right with it, too.

I'll try to have a look tomorrow or on Friday. (but do ping me if I happen to forget...)

faxm0dem commented 6 years ago

so I added the include for HostOS now I get:

/home/faxmodem/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-Ranges/src/Kaleidoscope-Ranges.h:24:6: error: expected identifier before ':' token
 enum : uint16_t {
      ^
/home/faxmodem/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-Ranges/src/Kaleidoscope-Ranges.h:24:6: error: expected unqualified-id before ':' token
/home/faxmodem/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-PrefixLayer/src/Kaleidoscope/PrefixLayer.cpp: In member function 'virtual void kaleidoscope::PrefixLayer::begin()':
/home/faxmodem/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope-PrefixLayer/src/Kaleidoscope/PrefixLayer.cpp:37:52: warning: 'static void kaleidoscope::Kaleidoscope_::useEventHandlerHook(kaleidoscope::Kaleidoscope_::eventHandlerHook)' is deprecated (declared at /home/faxmodem/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h:177):