younghyunjo / esp32-homekit

ESP-32 implementation of Apple Homekit Accessory Protocol(HAP)
Apache License 2.0
445 stars 124 forks source link

Unable to compile (DOIT ESP32 DEVKIT V1) #52

Open Aaru911 opened 2 years ago

Aaru911 commented 2 years ago

Invalid library found in /Users/aaru/Documents/Arduino/libraries/esp32-homekit-master: no headers files (.h) found in /Users/aaru/Documents/Arduino/libraries/esp32-homekit-master In file included from /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:10: /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {.format=homekit_format_string, .string_value=(value), ##VA_ARGS__} ^ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:1088:14: note: in expansion of macro 'HOMEKITSTRING' .value = HOMEKITSTRING(serial), \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:269:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_SERIAL_NUMBER' HOMEKIT_DECLARECHARACTERISTIC ## name( VA_ARGS ) \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:32:42: note: in expansion of macro 'HOMEKITCHARACTERISTIC' homekit_characteristic_t serial_number = HOMEKITCHARACTERISTIC(SERIAL_NUMBER, ACCESSORY_SN); ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {.format=homekit_format_string, .string_value=(value), ##VA_ARGS} ^ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:974:14: note: in expansion of macro 'HOMEKITSTRING' .value = HOMEKITSTRING(manufacturer), \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_MANUFACTURER' HOMEKIT_DECLARECHARACTERISTIC ## name( VA_ARGS ) \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC' &(homekit_service_t) { .type=HOMEKITSERVICE ## _type, ##VA_ARGS__ } ^~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'

__VA_ARGS__ \

       ^~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY' HOMEKIT_ACCESSORY( ^~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {.format=homekit_format_string, .string_value=(value), ##VA_ARGS} ^ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:983:14: note: in expansion of macro 'HOMEKITSTRING' .value = HOMEKITSTRING(model), \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_MODEL' HOMEKIT_DECLARECHARACTERISTIC ## name( VA_ARGS ) \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC' &(homekit_service_t) { .type=HOMEKITSERVICE ## _type, ##__VA_ARGS__ } ^~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'

__VA_ARGS__ \

       ^~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY' HOMEKIT_ACCESSORY( ^~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {.format=homekit_format_string, .string_value=(value), ##VA_ARGS__} ^ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:836:14: note: in expansion of macro 'HOMEKITSTRING' .value = HOMEKITSTRING(revision), \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_FIRMWARE_REVISION' HOMEKIT_DECLARECHARACTERISTIC ## name( VA_ARGS ) \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC' &(homekit_service_t) { .type=HOMEKITSERVICE ## _type, ##VA_ARGS__ } ^~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'

__VA_ARGS__ \

       ^~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY' HOMEKIT_ACCESSORY( ^~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:147:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] {.format=homekit_format_string, .string_value=(value), ##VA_ARGS} ^ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/characteristics.h:1002:14: note: in expansion of macro 'HOMEKITSTRING' .value = HOMEKITSTRING(name), \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:262:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_NAME' HOMEKIT_DECLARECHARACTERISTIC ## name( VA_ARGS ) \ ^~~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:252:63: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC' &(homekit_service_t) { .type=HOMEKITSERVICE ## _type, ##__VA_ARGS__ } ^~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'

__VA_ARGS__ \

       ^~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:74:5: note: in expansion of macro 'HOMEKIT_ACCESSORY' HOMEKIT_ACCESSORY( ^~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:101:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] .password = "111-11-111", ^~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/examples/ESP32_homekit_wolfssl_4_3_0/ESP32_homekit/builtin_led_accessory.c:103:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] .setupId = "ABCD" ^~ In file included from /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:3: /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp: In function 'void homekit_server_on_pair_verify(client_context_t, const byte, size_t)': /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:43: error: 'system_get_free_heap_size' was not declared in this scope

define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());

                                       ^~~~~~~~~~~~~~~~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/esp_xpgm.h:28:56: note: in definition of macro 'XPGM_PRINTF'

define XPGM_PRINTF(fmt, ...) printf_P(PSTR(fmt) , ##__VA_ARGS__);

                                                    ^~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:21: note: in expansion of macro 'INFO'

define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());

                 ^~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:1774:2: note: in expansion of macro 'INFO_HEAP' INFO_HEAP(); ^~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:43: note: suggested alternative: 'esp_get_free_heap_size'

define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());

                                       ^~~~~~~~~~~~~~~~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/esp_xpgm.h:28:56: note: in definition of macro 'XPGM_PRINTF'

define XPGM_PRINTF(fmt, ...) printf_P(PSTR(fmt) , ##__VA_ARGS__);

                                                    ^~~~~~~~~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/homekit_debug.h:40:21: note: in expansion of macro 'INFO'

define INFO_HEAP() INFO("Free heap: %u", system_get_free_heap_size());

                 ^~~~

/Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:1774:2: note: in expansion of macro 'INFO_HEAP' INFO_HEAP(); ^~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp: In function 'void homekit_server_init(homekit_server_config_t*)': /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:3439:4: error: 'system_restart' was not declared in this scope system_restart(); ^~~~~~ /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master/src/arduino_homekit_server_esp32.cpp:3439:4: note: suggested alternative: 'system_event_t' system_restart(); ^~~~~~ system_event_t Multiple libraries were found for "WiFi.h" Used: /Users/aaru/Library/Arduino15/packages/esp32/hardware/esp32/2.0.2/libraries/WiFi Not used: /Users/aaru/Documents/Arduino/libraries/WiFiNINA Not used: /Users/aaru/Documents/Projects/Home/Arduino.app/Contents/Java/libraries/WiFi Multiple libraries were found for "arduino_homekit_server.h" Used: /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP32-master Not used: /Users/aaru/Documents/Arduino/libraries/Arduino-HomeKit-ESP8266-master exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1.