IDE / Tooling
ESP-IDF
What happened?
add AysncTCP version 3.4.0 as component using ESP Component Registry to ESP-IDF 5.3.3 in vscode.
Build with error:
E:/ESP_IDF/ClockOS/managed_components/esp32async__asynctcp/src/AsyncTCP.cpp:15:10: fatal error: esp_timer.h: No such file or directory
15 | #include "esp_timer.h"
I fixed by change code of CMakeList.txt. Delete all and write new code to it:
idf_component_register(
SRCS "src/AsyncTCP.cpp"
INCLUDE_DIRS "src"
REQUIRES esp_timer
)
target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti)
Stack Trace
E:/ESP_IDF/ClockOS/managed_components/esp32async__asynctcp/src/AsyncTCP.cpp:15:10: fatal error: esp_timer.h: No such file or directory
15 | #include "esp_timer.h"
Minimal Reproductible Example (MRE)
just add to esp-idf as component and build
I confirm that:
IDE / Tooling
ESP-IDF
What happened?
add AysncTCP version 3.4.0 as component using ESP Component Registry to ESP-IDF 5.3.3 in vscode.
Build with error:
E:/ESP_IDF/ClockOS/managed_components/esp32async__asynctcp/src/AsyncTCP.cpp:15:10: fatal error: esp_timer.h: No such file or directory
15 | #include "esp_timer.h"
I fixed by change code of CMakeList.txt. Delete all and write new code to it:
Stack Trace
E:/ESP_IDF/ClockOS/managed_components/esp32async__asynctcp/src/AsyncTCP.cpp:15:10: fatal error: esp_timer.h: No such file or directory
15 | #include "esp_timer.h"
Minimal Reproductible Example (MRE)
just add to esp-idf as component and build
I confirm that: