Using esp-idf in arduino: issues with librairies / components
Posted: Sun Feb 23, 2020 2:22 pm
I'm using arduino, and so far I could always add some occasionnal esp-idf libraries (or components, not sure what's the difference) in my project, by adding the header. Like:
I have the esp-idf in C:\esp\esp-idf, and arduino in C:\Users\USERNAME\AppData\Local\Arduino15.
However I now include a .h file that has itself some other includes in the IDF and it doesn't compile. so here for instance:
I included tcpip_adapter_types.h with its full path, but it contains an include to "esp_netif_sta_list.h" with no directory and it breaks.
Manually adding the path seem very dirty, is there a way to include a search path for the libraries in arduino so that it searches in the esp-idf files as well?
Code: Select all
#include "C:\esp\esp-idf\components\esp_https_ota\include\esp_https_ota.h"
However I now include a .h file that has itself some other includes in the IDF and it doesn't compile. so here for instance:
I included tcpip_adapter_types.h with its full path, but it contains an include to "esp_netif_sta_list.h" with no directory and it breaks.
Code: Select all
C:\esp\esp-idf\components\tcpip_adapter\include\tcpip_adapter_types.h:20:32: fatal error: esp_netif_sta_list.h: No such file or directory