Can't Get Library Dependencies Right - PlatformIO Community
Maybe your like
OK, I’m a complete noob to PlatformIO but I’m banging a dent in my desk with my forehead. I’m trying to move a 1300 line Arduino IDE sketch. Works just fine in that IDE. I get hundreds of errors in PlatformIO so I decided to start from the beginning. I installed every library I need and their includes but nothing else. The setup() and loop() are empty. OK, big improvement, now I’m down to just dozens of errors but most seem to relate to dependencies of ArduinoJson.h and Adafruit GFX Library. I’ve checked the dependencies as best as I understand and they seem correct.
What am I missing?
#include <Arduino.h> // ******************************************************* // ******************* INCLUDES ************************** // ******************************************************* #include "colors.h" // frame colors // For general sketch #include <ESP8266WiFi.h> // [builtin] #include <ArduinoJson.h> // [manager] v6.19.1 #include <ESP8266HTTPClient.h> // [builtin] http // For Wemos TFT 1.4 display shield #include <Adafruit_GFX.h> // [manager] v1.10.13 Core graphics library #include <Adafruit_ST7735.h> // [manager] v1.9.0 Controller chip #include <SPI.h> // [builtin] // Time functions by Rop Gonggrijp // See https://github.com/ropg/ezTime #include <ezTime.h> // [manager] v0.8.3 NTP & timezone // For basic WiFi OTA //#include <ESP8266mDNS.h> //#include <WiFiUdp.h> //#include <ArduinoOTA.h> // For HTTPS OTA #include <ESP8266HTTPClient.h> // [builtin] http #include <WiFiClientSecureBearSSL.h> // [builtin] https #include <ESP8266httpUpdate.h> // [builtin] OTA #include "ota.h" // web server paths // For WiFiManager library #include <LittleFS.h> // [builtin] LittleFS File System #include <DNSServer.h> // [builtin] For webserver #include <ESP8266WebServer.h> // [builtin] For webserver #include <WiFiManager.h> // [manager] https://github.com/tzapu/WiFiManager #include <DoubleResetDetector.h> // [manager] v1.0.3 by Stephen Denne https://github.com/datacute/DoubleResetDetector void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }========================
src\main.cpp:15:10: fatal error: ArduinoJson.h: No such file or directory ********************************************************************* * Looking for ArduinoJson.h dependency? Check our library registry! * * CLI > platformio lib search "header:ArduinoJson.h" * Web > https://platformio.org/lib/search?query=header:ArduinoJson.h * ********************************************************************* 15 | #include <ArduinoJson.h> // [manager] v6.19.1 | ^~~~~~~~~~~~~~~ compilation terminated. *** [.pio\build\d1_mini\src\main.cpp.o] Error 1======================================
[env:d1_mini] platform = espressif8266 board = d1_mini framework = arduino lib_deps = bblanchon/ArduinoJson@^6.19.1 ropg/ezTime@^0.8.3 adafruit/Adafruit GFX Library@^1.10.13 adafruit/Adafruit ST7735 and ST7789 Library@^1.9.0 tzapu/WiFiManager@^0.16.0 datacute/DoubleResetDetector@^1.0.3============================
Screenshot 2022-02-08 161804237×554 9.14 KB
Tag » Arduino Littlefs.h No Such File Or Directory
-
Cannot Build With LittleFS Support (LittleFS.h Not Found) · Issue #7494
-
No Such File Or Directory For
· Issue #1302 - GitHub -
ESP8266[NodeMCU] LittleFS Library Problem - Stack Overflow
-
[solved] LittleFS Errors When Running From VC Code - Arduino Forum
-
ESP32: Solving Issues With Arduino Development - Welly's
-
Install ESP8266 LittleFS Filesystem Uploader In Arduino IDE
-
ESPUI-master\src/ESPUI.h:14:22: Fatal Error: LittleFS.h: No Such File ...
-
2 Easy Fixes To Arduino Error: “.h: No Such File Or Directory" - YouTube
-
Filesystem - ESP8266 Arduino Core Documentation - Read The Docs
-
Raspberry Pi Pico - LittleFS.h: No Such File Or Directory - ULisp Forum
-
How The [bleep] Do I Get LittleFS To Compile - Adafruit Forums
-
File System With RPI Pico2040 - Raspberry Pi Forums
-
LittleFS Introduction & Install ESP8266 Filesystem Uploader In ...
-
C++ - ESP8266[NodeMCU] LittleFS Library Problem