Galzai / MK32

Keyboard firmware for ESP32 microcontrollers
676 stars 118 forks source link

Could not compile MK32 #16

Closed huylesmartdevices closed 4 years ago

huylesmartdevices commented 4 years ago

Hi,

I'm trying to build MK32 on Ubuntu 16.04 with GNU Make (Crosstool-NG). When I type the command make all then I got the error :

/esp/MK32/components/ble_new/component.mk:5: warning: undefined variable 'GCC_NOT_5_2_0' CC build/ble_new/hid_device_le_prf.o /home/leduchuy/esp/MK32/components/ble_new/hid_device_le_prf.c:275:22: error: 'char_prop_read_write_notify' defined but not used [-Werror=unused-const-variable=] static const uint8_t char_prop_read_write_notify = ESP_GATT_CHAR_PROP_BIT_READ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/leduchuy/esp/MK32/components/ble_new/hid_device_le_prf.c:268:22: error: 'char_prop_notify' defined but not used [-Werror=unused-const-variable=] static const uint8_t char_prop_notify = ESP_GATT_CHAR_PROP_BIT_NOTIFY; ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors /home/leduchuy/esp/esp-idf/make/component_wrapper.mk:291: recipe for target 'hid_device_le_prf.o' failed make[1]: *** [hid_device_le_prf.o] Error 1 /home/leduchuy/esp/esp-idf/make/project.mk:635: recipe for target 'component-ble_new-build' failed make: *** [component-ble_new-build] Error 2 Can you help me to fix this error? Thanks so much.

huylesmartdevices commented 4 years ago

Sorry, I replace IDF v4.0 and it's ok now.