ENC28J60lwIP.h not found

Hi,

I’m porting a firmware from ESP8266 to ESP32. First I wanted to simply build for the original, board as d1_mini, but build failed with missing <ENC28J60lwIP.h>
Since that should be a part of Arduino ESP8266 Core libs, I’m totally confused :frowning:
(platformio is a fresh install under vscode)

[platformio]
src_dir = .
include_dir = .

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
lib_ldf_mode = deep
lib_deps = 
	sui77/rc-switch @ ^2.6.3
	https://github.com/ThingPulse/esp8266-oled-ssd1306/archive/4.2.0.zip
	knolleary/PubSubClient @ ^2.8
	https://github.com/OpenThingsIO/OpenThings-Framework-Firmware-Library/archive/refs/heads/master.zip
	https://github.com/Links2004/arduinoWebSockets/archive/refs/tags/2.3.5.zip
build_src_filter = +<*> -<html/*>
upload_speed = 460800
monitor_speed = 115200
board_build.flash_mode = dio
board_build.ldscript = eagle.flash.4m2m.ld
board_build.f_cpu = 160000000L
board_build.f_flash = 80000000L

Doesn’t seem to be built-into the Ethernet library of Arduino-ESP32… So you can use these libs

That’s right, but it is in the esp8266 lib, however I couldn’t build for 8266.

Browsing the other related threads, I’ve found a solution: delete the framework dir & pio pkg update solved the issue.