Hello,
I'm surely missing something obvious but this is driving me mad.
I have a project, with a component dir full of files, compiling, working, wifi, udp, everything ok.
When I try to add http server support, whatever I do it never finds "esp_http_server.h".
If, however, I copy the protocols/http_server/simple example and compile it, there is no problem.
I can't find anything I should add to CMakeLists.txt or anywhere else.
Any clue, please?
ESP-IDF v4.0-dev-1275-gfdab15dc7
(I have had to copy esp_http_server.h and another file to local to make this compile)
Thanks in advance,
jaime
esp_http_server.h not found in project, but found in example
-
abhirama-951
- Posts: 1
- Joined: Fri Aug 08, 2025 11:58 am
Re: esp_http_server.h not found in project, but found in example
I had the same issue, to resolve as mentioned in the ESP-IDF API guides, add REQUIRES segment in the CMakeLists.txt. BTW im using v5.4.1
But after doing so i got another error as in freertos.h portYIELD_CORE should be defined. To solve that edit the portmacro.h file in esp/esp-idfv5.4.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos folder. Just remove the #if and #endif statements above and below the #define portYIELD_PORT statement
But after doing so i got another error as in freertos.h portYIELD_CORE should be defined. To solve that edit the portmacro.h file in esp/esp-idfv5.4.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos folder. Just remove the #if and #endif statements above and below the #define portYIELD_PORT statement
Who is online
Users browsing this forum: ChatGPT-User, Google [Bot] and 1 guest