qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.24k stars 39.32k forks source link

I am getting that error unknown type name 'MidiDevice' any help ? #6166

Closed Romyo167 closed 2 years ago

Romyo167 commented 5 years ago
Compiling: ./tmk_core/common/avr/suspend.c In file included from ./tmk_core/common/avr/suspend.c:14:0: ./tmk_core/protocol/lufa/lufa.h:72:3: error: unknown type name 'MidiDevice' MidiDevice midi_device; ^ [ERRORS]

make[1]: [tmk_core/rules.mk:355: .build/obj_kb_default/common/avr/suspend.o] Error 1 Make finished with errors make: [Makefile:501: kb] Error 1

fauxpark commented 5 years ago

obj_kb_default, and the fact that line 14 of suspend.c is currently empty in QMK master, suggests to me that you've used kbfirmware to generate your keyboard files (kb is the default keyboard name it uses).

I would advise against this as the version of QMK it uses is horribly out of date now (over 2 years old I believe), and the site itself is not officially supported.

Instead you can use the QMK Configurator to make a keymap for an existing keyboard, or set yourself up to compile from QMK master, starting here: https://docs.qmk.fm/#/newbs.