espressif / esp-homekit-sdk

562 stars 105 forks source link

json_generator.h: No such file or directory when compiling example files #46

Closed twlawrenceko closed 3 years ago

twlawrenceko commented 3 years ago

Hello,

I have got this error when trying to compile smart-outlet example:

/home/user/esp/esp-homekit-sdk/components/homekit/esp_hap_core/src/esp_hap_ip_services.c:25:10: fatal error: json_generator.h: No such file or directory
 #include <json_generator.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.

Is there any way to resolve or install this file?

Thank you.

twlawrenceko commented 3 years ago

This has been solved by cloning git recursively git clone --recursive https://github.com/espressif/esp-homekit-sdk.git