Splatmeme-Printer icon indicating copy to clipboard operation
Splatmeme-Printer copied to clipboard

The Board Joystick driver cannot be used if the makefile BOARD option is not set. In file included from Joystick.h

Open BROHONKY opened this issue 2 years ago • 0 comments

I'm trying to compile the program but I just get this error and I can't find a way to fix it.

[GCC] : Compiling C file "Joystick.c" avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=at90usb1286 -fshort-enums -fno-inline-small-functions -fpack-struct -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -I../Splatmeme-Printer-master/LUFA/LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_NONE -DF_USB=16000000UL -DF_CPU=16000000UL -x c -Os -std=gnu99 -Wstrict-prototypes -DUSE_LUFA_CONFIG_HEADER -IConfig/ -MMD -MP -MF Joystick.d Joystick.c -o Joystick.o In file included from Joystick.h:48, from Joystick.c:27: ../Splatmeme-Printer-master/LUFA/LUFA/../LUFA/Drivers/Board/Joystick.h:103:5: error: #error The Board Joystick driver cannot be used if the makefile BOARD option is not set. In file included from Joystick.h:50, from Joystick.c:27: ../Splatmeme-Printer-master/LUFA/LUFA/../LUFA/Drivers/Board/Buttons.h:95:5: error: #error The Board Buttons driver cannot be used if the makefile BOARD option is not set. In file included from Joystick.h:53, from Joystick.c:27: Descriptors.h:52: error: conflicting types for 'CALLBACK_USB_GetDescriptor' ../Splatmeme-Printer-master/LUFA/LUFA/../LUFA/Drivers/USB/Core/AVR8/../Device.h:133: error: previous declaration of 'CALLBACK_USB_GetDescriptor' was here make: *** [Joystick.o] Error 1

BROHONKY avatar Nov 12 '22 16:11 BROHONKY