Hi, I have this problem when using firebaseESP8266. I doubled check the library installed in platformio.ini, it was there. If I use Arduino IDE with the same library, it’s no problem. I am using ESP8266.
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (E:\Documents\PlatformIO\Projects\ivbagnode\src\main.cpp).C/C++(1696)
cannot open source file "FirebaseESP8266.h"C/C++(1696)
[env:esp01_1m]
platform = espressif8266
board = esp01_1m
framework = arduino
lib_deps = mobizt/Firebase ESP8266 Client@^4.4.17
#include <Arduino.h>
#include <ESP8266WiFi.h>
**#include <FirebaseESP8266.h>**
Also double checking in libdeps, Firebase ESP8266 Client is present
Can anyone with esp8266 can check with this? just to confirm if I am only one facing this problem/config or it could be a bug.
Please help!
That’s an intellsense warning. Does the project build? If there is no compile error, there’s nothing to worry about.
Hi, Thanks for the reply! Unfortunately, it won’t build
Looking for FirebaseESP8266.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:FirebaseESP8266.h"
* Web > https://registry.platformio.org/search?q=header:FirebaseESP8266.h
*
*************************************************************************
3 | #include <FirebaseESP8266.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp12e\src\main.cpp.o] Error 1
That shouldn’t happen.
- Delete the
.pio
folder of your project and build again
- Please post the full
platformio.ini
.
Your logs don’t match what you’ve posted. You’re building for the esp12e
environment while you’ve posted a file with a esp01_1m
environment. You error may be just be that you’ve got the wrong environment or even project selected (project environment selector).
So I reinstalled platform.io
extensions in my vscode, created new project, installing library and start over again but still the same error.
- Delete the
.pio
folder of your project and build again
Deleted and building again but the error persist.
Here is the full log if someone can spot in the error that I haven’t.
Executing task in folder ivnode: C:\Users\Pavan\.platformio\penv\Scripts\platformio.exe run
Processing esp01_1m (platform: espressif8266; board: esp01_1m; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Library Manager: Installing mobizt/Firebase ESP8266 Client @ ^4.4.17
Unpacking [####################################] 100%
Library Manager: Firebase ESP8266 Client@4.4.17 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (4.2.1) > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 2.100300.220621 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Firebase ESP8266 Client @ 4.4.17
Building in release mode
Compiling .pio\build\esp01_1m\src\main.cpp.o
Generating LD script .pio\build\esp01_1m\ld\local.eagle.app.v6.common.ld
Compiling .pio\build\esp01_1m\lib893\SPI\SPI.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\BearSSLHelpers.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\CertStoreBearSSL.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFiGratuitous.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pio\build\esp01_1m\libac2\ESP8266WiFi\ESP8266WiFiScan.cpp.o
src\main.cpp:2:10: fatal error: FirebaseESP8266.h: No such file or directory
*************************************************************************
* Looking for FirebaseESP8266.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:FirebaseESP8266.h"
* Web > https://registry.platformio.org/search?q=header:FirebaseESP8266.h
*
*************************************************************************
2 | #include <FirebaseESP8266.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp01_1m\src\main.cpp.o] Error 1
================================================================================================= [FAILED] Took 14.02 seconds =================================================================================================
* The terminal process "C:\Users\Pavan\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
- Please post the full
platformio.ini
.
Here is the full platformio.ini
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp01_1m]
platform = espressif8266
board = esp01_1m
framework = arduino
lib_deps = mobizt/Firebase ESP8266 Client@^4.4.17
Your logs don’t match what you’ve posted. You’re building for the esp12e
environment while you’ve posted a file with a esp01_1m
environment.
You are right since I was creating new project to test and did not changed the environment.
Does the file .pio\libdeps\esp01_1m\Firebase ESP8266 Client\src\FirebaseESP8266.h
exist?
Very interesting.
The library version it downloads, there is no FirebaseESP8266.h in it.
But, per https://github.com/mobizt/Firebase-ESP8266/blob/v4.4.17/src/FirebaseESP8266.h the file should exist inversion 4.4.17.
The file just redirects to #include "Firebase.h"
though.
SUCCESS! Thank you so much for spoting this.
I renamed to Firebase.h and it succeeded to build.
This is a bit confusing though since it has no error in the Arduino IDE. The code in the examples it given from library is not updated I guess? Because I was just following the examples.
This case is solved now!
This… shouldn’t happen. The author must have uploaded a custom version of the library for the file to not be there. It exists in the tagged github version, so why not in the PlatformIO registry?
You should be able to use your original code if you pull the library dependency from the github tag too:
lib_deps =
https://github.com/mobizt/Firebase-ESP8266/archive/refs/tags/v4.4.17.zip
1 Like