Web editor cant compile examples if wifi library needed

Hello I am just trying to run example sketch WifiManualWebServer with the arduino web editor on a node mcu.

I can run simple sketches but it appears as soon as i include ESP8266WiFi.h or similar libraries i cant complie.

I thought the libraries are pre loaded on web editor?

This is my output below

/usr/local/bin/arduino-cli compile --fqbn esp8266:esp8266:nodemcu:baud=115200,dbg=Disabled,eesz=4M1M,exception=disabled,ip=lm2f,lvl=None____,vt=flash,wipe=none,xtal=160 --build-cache-path /tmp --output-dir /tmp/2873123585/build --build-path /tmp/arduino-build-10802362A3276CB99E96FF614E98C0D6 --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Adafruit ADS1X15 --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Adafruit Circuit Playground --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ArduinoOTA --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Arduino_LSM9DS1 --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Bridge --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/DNSServer --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266 --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266AVRISP --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266HTTPClient --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266HTTPUpdateServer --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266LLMNR --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266NetBIOS --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266SSDP --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266WebServer --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266WiFi --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266WiFiMesh --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266httpUpdate --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266mDNS --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Esplora --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Ethernet --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Firmata --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/GDBStub --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/GSM --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Hash --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/I2S --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Keyboard --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/LiquidCrystal --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/LittleFS --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Mouse --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/NetDump --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Robot Control --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Robot IR Remote --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Robot Motor --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/SD --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/SDFS --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/SPI --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/SPISlave --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Servo --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/SpacebrewYun --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/SparkFun ADS1015 Arduino Library --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Stepper --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/TFT --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/TFT_Touch_Shield_V2 --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Temboo --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/Ticker --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/WiFi --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/lwIP_PPP --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/lwIP_enc28j60 --library /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/lwIP_w5500 /tmp/2873123585/WiFiManualWebServer

In file included from /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266WiFi/src/ESP8266WiFi.h:34:0,

from /tmp/2873123585/WiFiManualWebServer/WiFiManualWebServer.ino:10:

/mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266WiFi/src/ESP8266WiFiSTA.h:30:22: fatal error: LwipIntf.h: No such file or directory

#include "LwipIntf.h"

^

compilation terminated.

Multiple libraries were found for "ESP8266WiFi.h"

Used: /mnt/create-efs/webide/27/ab/27abca3228b39ac437ae6473957aad0b:Gerald899/libraries_v2/ESP8266WiFi

Not used: /home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi

Error during build: exit status 1


regards
Gerald

Hi @Gerald8991. As you can see from the output you shared, two ESP8266WiFi libraries were found while compiling your sketch.

The library that was used is a custom one you imported into your Arduino Cloud account. It seems this custom library is incompatible with the ESP8266 boards platform that is installed on Arduino Cloud.

So the solution will be to remove the custom library from your account. Doing that will allow Arduino Cloud to use the other installed ESP8266WiFi library, which is compatible.

Please try this:

  1. If it is not already open, select "Libraries" from the menu on the left side of the "Arduino Web Editor" window to open the Libraries panel.
  2. Select the "CUSTOM" tab from the Libraries panel.
  3. Find the entry for the "ESP8266WiFi" library in the list of "custom" libraries.
  4. Hover the mouse pointer over the entry for the "ESP8266WiFi" library.
    You will see a downward pointing triangle icon appear to the right of the library name.
  5. Click the downward pointing triangle icon.
    A context menu will open.
  6. Select "Delete Library" from the context menu.

Now try compiling or uploading your sketch again. Hopefully this time the error won't occur.


Please let me know if you have any questions or problems while following those instructions.

Great Thanks ptillisch

Thats worked perfectly , I think I understrand what to look out for now in future.

Regards
Gerald

You are welcome. I'm glad it is working now.

Great. In case you have any doubts, I'd be happy to provide a more detailed explanation.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.