ENC28J60lwIP.h not found


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)

src_dir = .
include_dir = .

platform = espressif8266
board = d1_mini
framework = arduino
lib_ldf_mode = deep
lib_deps = 
	sui77/rc-switch @ ^2.6.3
	knolleary/PubSubClient @ ^2.8
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.