khoih-prog / Timezone_Generic

Library to facilitate time zone conversions and automatic daylight saving (summer) time adjustments. For ESP8266, ESP32, WT32-ETH01 (ESP32 + LAN8720), SAMD21, SAMD51, nRF52, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RTL8720DN, RP2040-based (Nano_RP2040_Connect, RASPBERRY_PI_PICO), Portenta_H7 (Ethernet or WiFi) boards, etc. using W5x00/ENC28J60/LAN8742A Ethernet, ESP or ESP-AT WiFi or WiFiNINA. Ethernet_Generic library is used as default for W5x00.
GNU General Public License v3.0
13 stars 7 forks source link

fatal error: stm32_def.h: No such file or directory #2

Closed d42ohpaz closed 3 years ago

d42ohpaz commented 3 years ago

When attempting to include this library, or the DS323x_Generic that seems to depend on this library, I get the above error when trying to compile. The thing is: I don't use an stm32; I use an esp32. As you'll see from the compile log below, this appears to stem from somewhere around the STM32Ethernet dependency. I suspect their library works fine for stm32 boards, so maybe there is an include somewhere that needs #if defined(ESP32) wrapped around it?

Board: ESP32-S2 wroom PlatformIO: 5.1.0 CLion: 2021.3 platformio.ini:

[platformio]
default_envs = nodemcu-32s

[common]
build_flags =
    -D LV_CONF_INCLUDE_SIMPLE
    -I .
    -I include
lib_deps =
    lvgl/lvgl@^7.9.1
lib_archive = false
src_filter =
    +<*>

[env:nodemcu-32s]
build_flags =
    ${common.build_flags}
    -DWIFI_SSID='"${sysenv.WIFI_SSID}"'
    -DWIFI_PASS='"${sysenv.WIFI_PASS}"'
platform = espressif32
board = nodemcu-32s
framework = arduino
lib_deps =
    ${common.lib_deps}
    EEPROM
    SPI
    Wire
    adafruit/Adafruit BusIO@^1.7.1
    adafruit/Adafruit GFX Library@^1.10.4
    adafruit/Adafruit RA8875@^1.4.0
    adafruit/Adafruit TouchScreen@^1.1.1
    juerd/ESP-WiFiSettings @ ^3.7.2
    khoih.prog/NTPClient_Generic @ ^3.2.2
    khoih.prog/DS323x_Generic @ ^1.1.0
    paulstoffregen/Time @ ^1.6
monitor_port = /dev/cu.usbserial-0001
monitor_speed = 115200
monitor_filters = time, default, printable
src_filter =
    ${common.src_filter}
    -<src/simulator.cpp>

[env:native]
platform = native@^1.1.3
extra_scripts = support/sdl2_build_extra.py
build_flags =
    ${common.build_flags}
    -std=c++17
    -O3
    -lSDL2
    -D LV_LVGL_H_INCLUDE_SIMPLE
    -D LV_DRV_NO_CONF
    -D USE_MONITOR
    -D MONITOR_ZOOM=1
    -D USE_MOUSE
    -D USE_MOUSEWHEEL
    -D USE_KEYBOARD
lib_deps =
    ${common.lib_deps}
    lv_drivers@~7.9.0
src_filter =
    ${common.src_filter}
    +<../hal/sdl2>
    -<*/nodemcu32s*>

compile log:

====================[ Build | Production | nodemcu-32s ]========================
"/Users/kstanl27/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/203.7148.70/CLion.app/Contents/bin/cmake/mac/bin/cmake" --build /Users/kstanl27/Development/dbuddy/cmake-build-nodemcu-32s --target Production -- -j 3
Scanning dependencies of target Production
Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/nodemcu-32s.html
PLATFORM: Espressif 32 (3.0.0) > NodeMCU-32S
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10004.210126 (1.0.4)
 - tool-esptoolpy 1.30000.201119 (3.0.0)
 - toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 57 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <lvgl> 7.10.1
|   |-- <ESP32 BLE Arduino> 1.0.1
|-- <EEPROM> 1.0.3
|-- <SPI> 1.0
|-- <Wire> 1.0.1
|-- <Adafruit BusIO> 1.7.2
|   |-- <Wire> 1.0.1
|   |-- <SPI> 1.0
|-- <Adafruit GFX Library> 1.10.5
|   |-- <Adafruit BusIO> 1.7.2
|   |   |-- <Wire> 1.0.1
|   |   |-- <SPI> 1.0
|   |-- <Wire> 1.0.1
|   |-- <SPI> 1.0
|-- <Adafruit RA8875> 1.4.0
|   |-- <Adafruit GFX Library> 1.10.5
|   |   |-- <Adafruit BusIO> 1.7.2
|   |   |   |-- <Wire> 1.0.1
|   |   |   |-- <SPI> 1.0
|   |   |-- <Wire> 1.0.1
|   |   |-- <SPI> 1.0
|   |-- <EEPROM> 1.0.3
|   |-- <SPI> 1.0
|-- <Adafruit TouchScreen> 1.1.1
|-- <ESP-WiFiSettings> 3.7.2
|   |-- <DNSServer> 1.1.0
|   |   |-- <WiFi101> 0.16.1
|   |   |   |-- <SPI> 1.0
|   |   |-- <STM32duino LwIP> 2.1.2
|   |   |   |-- <STM32Ethernet> 1.2.0
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|   |-- <WebServer> 1.0
|   |   |-- <WiFiEspAT> 1.3.1
|   |   |-- <FS> 1.0
|   |   |-- <WiFi101> 0.16.1
|   |   |   |-- <SPI> 1.0
|   |   |-- <ESP8266_AT_WebServer> 1.1.2
|   |   |   |-- <Functional-Vlpp> 1.0.1
|   |-- <WiFiEspAT> 1.3.1
|-- <NTPClient_Generic> 3.2.2
|   |-- <Time> 1.6.0
|-- <Timezone_Generic> 1.3.0
|   |-- <Time> 1.6.0
|   |-- <DS323x_Generic> 1.1.0
|   |   |-- <Time> 1.6.0
|   |   |-- <WiFiNINA_Generic> 1.8.2
|   |   |   |-- <SPI> 1.0
|   |   |-- <WiFiWebServer> 1.1.1
|   |   |   |-- <WiFiNINA_Generic> 1.8.2
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <ESP_AT_Lib> 1.0.0
|   |   |   |-- <WiFi101> 0.16.1
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <WiFiEspAT> 1.3.1
|   |   |   |-- <Functional-Vlpp> 1.0.1
|   |   |-- <EthernetWebServer> 1.3.0
|   |   |   |-- <Functional-Vlpp> 1.0.1
|   |   |   |-- <FS> 1.0
|   |   |   |-- <Ethernet> 2.0.0
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <Ethernet2> 1.0.4
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <Ethernet3> 1.5.3
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <EthernetENC> 2.0.0
|   |   |   |   |-- <SPI> 1.0
|   |   |-- <ESP8266_AT_WebServer> 1.1.2
|   |   |   |-- <Functional-Vlpp> 1.0.1
|   |   |-- <Ethernet> 2.0.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <EthernetENC> 2.0.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <STM32duino LwIP> 2.1.2
|   |   |   |-- <STM32Ethernet> 1.2.0
|   |   |-- <STM32Ethernet> 1.2.0
|   |   |-- <Wire> 1.0.1
|   |-- <WiFiNINA_Generic> 1.8.2
|   |   |-- <SPI> 1.0
|   |-- <EthernetWebServer> 1.3.0
|   |   |-- <Functional-Vlpp> 1.0.1
|   |   |-- <FS> 1.0
|   |   |-- <Ethernet> 2.0.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <Ethernet2> 1.0.4
|   |   |   |-- <SPI> 1.0
|   |   |-- <Ethernet3> 1.5.3
|   |   |   |-- <SPI> 1.0
|   |   |-- <EthernetENC> 2.0.0
|   |   |   |-- <SPI> 1.0
|   |-- <WiFiWebServer> 1.1.1
|   |   |-- <WiFiNINA_Generic> 1.8.2
|   |   |   |-- <SPI> 1.0
|   |   |-- <ESP_AT_Lib> 1.0.0
|   |   |-- <WiFi101> 0.16.1
|   |   |   |-- <SPI> 1.0
|   |   |-- <WiFiEspAT> 1.3.1
|   |   |-- <Functional-Vlpp> 1.0.1
|   |-- <ESP8266_AT_WebServer> 1.1.2
|   |   |-- <Functional-Vlpp> 1.0.1
|   |-- <STM32duino LwIP> 2.1.2
|   |   |-- <STM32Ethernet> 1.2.0
|   |-- <STM32Ethernet> 1.2.0
|   |-- <STM32duino RTC> 1.1.0
|   |-- <EthernetENC> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <WiFiEspAT> 1.3.1
|   |-- <Ethernet2> 1.0.4
|   |   |-- <SPI> 1.0
|   |-- <Ethernet3> 1.5.3
|   |   |-- <SPI> 1.0
|   |-- <Ethernet> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <EthernetLarge> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <FS> 1.0
|   |-- <EEPROM> 1.0.3
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|-- <DS323x_Generic> 1.1.0
|   |-- <Time> 1.6.0
|   |-- <WiFiNINA_Generic> 1.8.2
|   |   |-- <SPI> 1.0
|   |-- <WiFiWebServer> 1.1.1
|   |   |-- <WiFiNINA_Generic> 1.8.2
|   |   |   |-- <SPI> 1.0
|   |   |-- <ESP_AT_Lib> 1.0.0
|   |   |-- <WiFi101> 0.16.1
|   |   |   |-- <SPI> 1.0
|   |   |-- <WiFiEspAT> 1.3.1
|   |   |-- <Functional-Vlpp> 1.0.1
|   |-- <EthernetWebServer> 1.3.0
|   |   |-- <Functional-Vlpp> 1.0.1
|   |   |-- <FS> 1.0
|   |   |-- <Ethernet> 2.0.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <Ethernet2> 1.0.4
|   |   |   |-- <SPI> 1.0
|   |   |-- <Ethernet3> 1.5.3
|   |   |   |-- <SPI> 1.0
|   |   |-- <EthernetENC> 2.0.0
|   |   |   |-- <SPI> 1.0
|   |-- <ESP8266_AT_WebServer> 1.1.2
|   |   |-- <Functional-Vlpp> 1.0.1
|   |-- <Ethernet> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <EthernetENC> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <STM32duino LwIP> 2.1.2
|   |   |-- <STM32Ethernet> 1.2.0
|   |-- <STM32Ethernet> 1.2.0
|   |-- <Wire> 1.0.1
|-- <Time> 1.6.0
|-- <WiFiEspAT> 1.3.1
|-- <SPIFFS> 1.0
|   |-- <FS> 1.0
|-- <WiFi101> 0.16.1
|   |-- <SPI> 1.0
Building in release mode
Compiling .pio/build/nodemcu-32s/lib975/STM32Ethernet/Dhcp.cpp.o
Compiling .pio/build/nodemcu-32s/lib975/STM32Ethernet/Dns.cpp.o
Compiling .pio/build/nodemcu-32s/lib975/STM32Ethernet/EthernetClient.cpp.o
Compiling .pio/build/nodemcu-32s/lib975/STM32Ethernet/EthernetServer.cpp.o
In file included from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/EthernetUdp.h:43:0,
                 from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/Dhcp.h:7,
                 from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/Dhcp.cpp:6:
.pio/libdeps/nodemcu-32s/STM32Ethernet/src/utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory

*******************************************************************
* Looking for stm32_def.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:stm32_def.h"
* Web  > https://platformio.org/lib/search?query=header:stm32_def.h
*
*******************************************************************

compilation terminated.
*** [.pio/build/nodemcu-32s/lib975/STM32Ethernet/Dhcp.cpp.o] Error 1
In file included from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/EthernetUdp.h:43:0,
                 from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/Dns.cpp:5:
.pio/libdeps/nodemcu-32s/STM32Ethernet/src/utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory

*******************************************************************
* Looking for stm32_def.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:stm32_def.h"
* Web  > https://platformio.org/lib/search?query=header:stm32_def.h
*
*******************************************************************

compilation terminated.
*** [.pio/build/nodemcu-32s/lib975/STM32Ethernet/Dns.cpp.o] Error 1
In file included from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/EthernetClient.h:7:0,
                 from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/STM32Ethernet.h:6,
                 from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/EthernetClient.cpp:7:
.pio/libdeps/nodemcu-32s/STM32Ethernet/src/utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory

*******************************************************************
* Looking for stm32_def.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:stm32_def.h"
* Web  > https://platformio.org/lib/search?query=header:stm32_def.h
*
*******************************************************************

compilation terminated.
*** [.pio/build/nodemcu-32s/lib975/STM32Ethernet/EthernetClient.cpp.o] Error 1
In file included from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/EthernetClient.h:7:0,
                 from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/STM32Ethernet.h:6,
                 from .pio/libdeps/nodemcu-32s/STM32Ethernet/src/EthernetServer.cpp:5:
.pio/libdeps/nodemcu-32s/STM32Ethernet/src/utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory

*******************************************************************
* Looking for stm32_def.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:stm32_def.h"
* Web  > https://platformio.org/lib/search?query=header:stm32_def.h
*
*******************************************************************

compilation terminated.
*** [.pio/build/nodemcu-32s/lib975/STM32Ethernet/EthernetServer.cpp.o] Error 1
 [FAILED] Took 5.12 seconds

Environment    Status    Duration
-------------  --------  ------------
nodemcu-32s    FAILED    00:00:05.117
 1 failed, 0 succeeded in 00:00:05.117
make[3]: *** [CMakeFiles/Production] Error 1
make[2]: *** [CMakeFiles/Production.dir/all] Error 2
make[1]: *** [CMakeFiles/Production.dir/rule] Error 2
make: *** [Production] Error 2

If there's anything else I can provide, please let me know.

khoih-prog commented 3 years ago

Board: ESP32-S2 wroom PlatformIO: 5.1.0 CLion: 2021.3

The ESP32-S2, is different from ESP32 and not supported yet.

The example is compiled OK with ESP32.

image

khoih-prog commented 3 years ago

You can try to use the correct settings for ESP32-S2 to see if it's OK. The ESP32-S2 core is still not matured and released yet.

Espressif ESP32-S2-Saola-1

[env:esp32-s2-saola-1]
platform = espressif32
board = esp32-s2-saola-1

; change microcontroller
board_build.mcu = esp32s2

; change MCU frequency
board_build.f_cpu = 240000000L

I don't have ESP32-S2 to test now to see if it's OK, but I know there are many incompatibilities compared to ESP32.

I just ordered EP32-S2 to verify.

d42ohpaz commented 3 years ago

It looks like my chip is in fact an ESP32 (no S; my apologies). When I switched over my configuration to esp32dev and use the esp32s MCU, I got the following error:

A fatal error occurred: This chip is ESP32 not ESP32-S2. Wrong --chip argument?

I am going to create a blank project and see if I can't get your libraries to work to determine if it's my code or something else. I will try to report back in short order, but this week may be a busy one.

Thank you.

victorrova commented 3 years ago

Hello I have exactly the same error and I think my esp32 module is compatible, where am i going wrong?

platformio.ini:

`> [env:esp32doit-devkit-v1]

platform = espressif32 framework = arduino lib_deps = bblanchon/ArduinoJson@^6.18.0 adafruit/Adafruit SSD1306@^2.4.6 adafruit/Adafruit GFX Library@^1.10.10 C:\Users\vjrv\OneDrive\Documentos\PlatformIO\libs\ProDinoESP32 khoih.prog/WebSockets2_Generic@^1.5.0 khoih-prog/EthernetWebServer@^1.5.0 board_build.partitions = min_spiffs.csv board = esp32doit-devkit-v1`

And this is my way out: `> Executing task in folder arduinoesp32: C:\Users\vjrv.platformio\penv\Scripts\platformio.exe run <

Processing esp32doit-devkit-v1 (platform: espressif32; framework: arduino; board: esp32doit-devkit-v1) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html PLATFORM: Espressif 32 (3.3.1) > DOIT ESP32 DEVKIT V1 HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:


compilation terminated. *** [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\utility\ethernetif.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetUdp.h:43:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\Dhcp.h:7, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\Dhcp.cpp:6: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory


compilation terminated. In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetUdp.h:43:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\Dns.cpp:5: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory


compilation terminated. [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\Dhcp.cpp.o] Error 1 [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\Dns.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.cpp:7: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory


compilation terminated. In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetServer.cpp:5: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory


compilation terminated. [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\EthernetClient.cpp.o] Error 1 [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\EthernetServer.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetUdp.cpp:28: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory


compilation terminated. *** [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\EthernetUdp.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility\stm32_eth.cpp:40:0: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility\stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory


compilation terminated. In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.cpp:1: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory


[.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\utility\stm32_eth.cpp.o] Error 1 compilation terminated. [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\STM32Ethernet.cpp.o] Error 1 ============================================================================================ [FAILED] Took 11.20 seconds ============================================================================================El proceso del terminal "C:\Users\vjrv.platformio\penv\Scripts\platformio.exe 'run'" finalizó con el código de salida 1.

Las tareas reutilizarán el terminal, presione cualquier tecla para cerrarlo.`

where is my mistake?

Thanks!

khoih-prog commented 3 years ago

Thanks for your interest in the library.

I'm sorry that you got the same problem as

  1. Missing stm32_def.h for Teensy 4.1 #14
  2. ESP8266 issue platformio #14

The reason was stated as

Those lines were added as precaution (more than just enough, covering all platforms / libraries) so that PIO users can easily select which are necessary.

I always expect the more sophisticated PIO users will know how to fix this precaution issue. But I now rethink and will comment out all those precaution lines to avoid the fatal error.

Then it's up to the users to add the necessary lines (or still the same fatalerror` of not finding the library) and see which approach is better then.