... /mqtt/mqttClient.c:10:10: fatal error: esp_netif.h: No such file or directory
This happens for a few, but not all, components I try to include into my project.
I'm quite new to this, but my understanding is that these components reside in a folder structure in my esp-idf folders.
Some components in these folders are included just fine, but some just refuse to build until I fix it like this in my Cmakelists.txt:
INCLUDE_DIRS "." "include" "${IDF_PATH}/components/nvs_flash/include" "${IDF_PATH}/components/esp_partition/include" "${IDF_PATH}/components/esp_event/include"
Could someone explain me why I have to do this for some components, and how I am supposed to do this the proper way?
Perhaps through the project's top level CMakelists.txt?
Esp-IDF won't build because of failing includes; no such file or directory
Who is online
Users browsing this forum: Majestic-12 [Bot] and 102 guests