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
...
[ 86%] Building C object esp-idf/spiffs/CMakeFiles/__idf_spiffs.dir/spiffs/src/spiffs_check.c.obj
[ 86%] Building C object esp-idf/spiffs/CMakeFiles/__idf_spiffs.dir/spiffs/src/spiffs_gc.c.obj
[ 86%] Building C object esp-idf/spiffs/CMakeFiles/__idf_spiffs.dir/spiffs/src/spiffs_hydrogen.c.obj
[ 86%] Building C object esp-idf/spiffs/CMakeFiles/__idf_spiffs.dir/spiffs/src/spiffs_nucleus.c.obj
[ 86%] Linking C static library libspiffs.a
[ 86%] Built target __idf_spiffs
Scanning dependencies of target __idf_WIFIMANAGER-ESP32
[ 86%] Building CXX object esp-idf/WIFIMANAGER-ESP32/CMakeFiles/__idf_WIFIMANAGER-ESP32.dir/WiFiManager.cpp.obj
In file included from /home/andreas/CLionProjects/ESP32-WebCam/components/arduino/libraries/WebServer/src/WebServer.h:30,
from /home/andreas/CLionProjects/ESP32-WebCam/components/WIFIMANAGER-ESP32/WiFiManager.h:21,
from /home/andreas/CLionProjects/ESP32-WebCam/components/WIFIMANAGER-ESP32/WiFiManager.cpp:13:
/home/andreas/CLionProjects/ESP32-WebCam/components/arduino/libraries/WebServer/src/HTTP_Method.h:4:10: fatal error: http_parser.h: No such file or directory
#include "http_parser.h"
^~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [esp-idf/WIFIMANAGER-ESP32/CMakeFiles/__idf_WIFIMANAGER-ESP32.dir/build.make:82: esp-idf/WIFIMANAGER-ESP32/CMakeFiles/__idf_WIFIMANAGER-ESP32.dir/WiFiManager.cpp.obj] Error 1
make[2]: *** [CMakeFiles/Makefile2:5144: esp-idf/WIFIMANAGER-ESP32/CMakeFiles/__idf_WIFIMANAGER-ESP32.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2465: CMakeFiles/esp32-webcam.elf.dir/rule] Error 2
make: *** [Makefile:365: esp32-webcam.elf] Error 2
Solution
The webserver seems to depend on the the nghttp library ( http_parser.h ). Adding this requirement to CMakeLists.txt solves the problem. I will open a PR
The text was updated successfully, but these errors were encountered:
Hardware:
Description:
Compilation fails with the error below, after including the web server stack (i.e.
WiFi.h, WebServer.h
)`
Sketch
Debug Messages:
Solution
The webserver seems to depend on the the
nghttp
library (http_parser.h
). Adding this requirement toCMakeLists.txt
solves the problem. I will open a PRThe text was updated successfully, but these errors were encountered: