You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is: Use the mongoose library using ESP-IDFs component manager on VsCode.
My actions were:
Used the command palette in VsCode to create a new ESP-IDF project. I created the project using the template provided by the extension "template-app". Then ran idf.py add-dependency "cesanta/mongoose^7.8.2" to add mongoose component with ESP-IDF component manager. Then built the project.
My expectation was: To build the project without errors
The result I saw:
The important snippet of the log is:
"
In file included from D:/Code/sketches/Hydroponics/TheUltimate/Esp/using-mongoose-only/managed_components/cesanta__mongoose/mongoose/mongoose.c:20:
D:/Code/sketches/Hydroponics/TheUltimate/Esp/using-mongoose-only/managed_components/cesanta__mongoose/mongoose/mongoose.h:133:10: fatal error: esp_timer.h: No such file or directory
133 | #include <esp_timer.h>
| ^~~~~~~~~~~~~
compilation terminated.
"
It looks like the esp_timer component is not registered as a requirement / dependency. As stated in the Espressif docs, some components like esp_timer were in previous versions always added as public requirements. This is not true for ESP-IDF v5.0.
My question is:
How, and where do i add this dependency, and any other dependencies that might not be included? Are there other factors contributing to this issue? Is my environment set up correctly with the correct versions?
Edit
For some reason the CMakeList file that got downloaded is not the same as the one on github.
Mine that was downloaded with the component manager:
"
idf_component_register(SRCS "mongoose/mongoose.c"
INCLUDE_DIRS "mongoose"
REQUIRES lwip mbedtls)
target_compile_definitions(${COMPONENT_LIB} PRIVATE MG_ENABLE_MBEDTLS=1)
"
The one on github:
"
idf_component_register(SRCS "mongoose/mongoose.c"
INCLUDE_DIRS "mongoose"
REQUIRES lwip mbedtls esp_timer)
target_compile_definitions(${COMPONENT_LIB} PRIVATE MG_ENABLE_MBEDTLS=1)
"
I assume this fixes exactly my problem. ESP-IDF does not allow me to make the change ". My project directory also does not have a separate "components" folder, so i cant migrate the mongoose component. I tried making my own folder, but have not managed to "link" it correctly to the rest of my project.
My goal is: Use the mongoose library using ESP-IDFs component manager on VsCode.
My actions were:
Used the command palette in VsCode to create a new ESP-IDF project. I created the project using the template provided by the extension "template-app". Then ran idf.py add-dependency "cesanta/mongoose^7.8.2" to add mongoose component with ESP-IDF component manager. Then built the project.
My expectation was: To build the project without errors
The result I saw:
The important snippet of the log is:
"
In file included from D:/Code/sketches/Hydroponics/TheUltimate/Esp/using-mongoose-only/managed_components/cesanta__mongoose/mongoose/mongoose.c:20:
D:/Code/sketches/Hydroponics/TheUltimate/Esp/using-mongoose-only/managed_components/cesanta__mongoose/mongoose/mongoose.h:133:10: fatal error: esp_timer.h: No such file or directory
133 | #include <esp_timer.h>
| ^~~~~~~~~~~~~
compilation terminated.
"
It looks like the esp_timer component is not registered as a requirement / dependency. As stated in the Espressif docs, some components like esp_timer were in previous versions always added as public requirements. This is not true for ESP-IDF v5.0.
reference: (https://docs.espressif.com/projects/esp-idf/en/v5.0/esp32s2/migration-guides/release-5.x/build-system.html#specify-component-requirements-explicitly)
How, and where do i add this dependency, and any other dependencies that might not be included? Are there other factors contributing to this issue? Is my environment set up correctly with the correct versions?
Edit
For some reason the CMakeList file that got downloaded is not the same as the one on github.
Mine that was downloaded with the component manager:
"
idf_component_register(SRCS "mongoose/mongoose.c"
INCLUDE_DIRS "mongoose"
REQUIRES lwip mbedtls)
target_compile_definitions(${COMPONENT_LIB} PRIVATE MG_ENABLE_MBEDTLS=1)
"
The one on github:
"
idf_component_register(SRCS "mongoose/mongoose.c"
INCLUDE_DIRS "mongoose"
REQUIRES lwip mbedtls esp_timer)
target_compile_definitions(${COMPONENT_LIB} PRIVATE MG_ENABLE_MBEDTLS=1)
"
I assume this fixes exactly my problem. ESP-IDF does not allow me to make the change ". My project directory also does not have a separate "components" folder, so i cant migrate the mongoose component. I tried making my own folder, but have not managed to "link" it correctly to the rest of my project.
ESP-IDF v 5.1.1 on VsCode
logs.txt
The text was updated successfully, but these errors were encountered: