khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
178 stars 49 forks source link

fatal error: functional-vlpp.h: No such file or directory #70

Closed kendo55 closed 1 year ago

kendo55 commented 1 year ago

In Arduino IDE 1.8.19 with E. Philhower RP2040 core (what woorks in other cases very well) I tried to use your example

AdvancedWebServer_RP2040_SPI1.ino

with a "WIZnet 5100S-EVB-Pico" board, that woorks fine with the lib "https://github.com/WIZnet-ArduinoEthernet/Ethernet"
I replaced this lib with your lib.

in your original Exaple AdvancedWebServer_RP2040_SPI1, I made the following mutations in the defines.h :

define USING_SPI2 false // true //muths

IPAddress ip(192, 168, 1, 179); //muths

At the Verify process the have this error msg:

In file included from D:\projekte\RP2040\sketchbook\libraries\EthernetWebServer\src/EthernetWebServer.h:72,
                 from D:\projekte\RP2040\sketchbook\AdvancedWebServer_WIZnetHS1\defines.h:118,
                 from D:\projekte\RP2040\sketchbook\AdvancedWebServer_WIZnetHS1\AdvancedWebServer_WIZnetHS1.ino:44:
D:\projekte\RP2040\sketchbook\libraries\EthernetWebServer\src/EthernetWebServer.hpp:45:10: fatal error: functional-vlpp.h: No such file or directory
   45 | #include <functional-vlpp.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

I couldn't find this file anywhere....

Thanks!

khoih-prog commented 1 year ago

When using a new library, always check the Prerequisites first. Especially when you get a fatal error. Then know that you have to install functional-vlpp library.