Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Unable to figure out why 'LittleFS' was not declared in this scope#96

Answeredbykhoih-prog
the-programmer asked this question inQ&A
Discussion options

Hi all,

For a project I am trying to use the ESPAsync_WiFiManager but all the examples seem to be getting the same error.
The example I am using isAsync_ConfigOnDoubleReset
This generates the following error.
src/main.cpp:87:30: error: 'LittleFS' was not declared in this scope

It does not seem to be the same as issue#95 since I am using 2.0.3 as framework.

TheBuild log.txt is attached.

Does anyone have any suggestions on how to fix this?

You must be logged in to vote

CheckPrerequisites

Notice: ThisLittleFS_esp32 library has been integrated to ArduinoESP32 core v1.0.6+ and you don't need to install it if using ESP32 core v1.0.6+

As you're using the new ESP32 cores v2.0.3 with built-inLIttleFS, you don't needLorol'sLITTLEFS library anymore. Especially you're using the recent PIO version supporting new ESP32 core v1.0.6+

You can try to comment out the following line inplatformio.ini

lorol/LittleFS_esp32@>=1.0.6

If not OK, try to compile using Arduino IDE to see if there is anything wrong with your installation. Then moving on to PIO.
Post the issue onPIO Forum f…

Replies: 1 comment 4 replies

Comment options

CheckPrerequisites

Notice: ThisLittleFS_esp32 library has been integrated to ArduinoESP32 core v1.0.6+ and you don't need to install it if using ESP32 core v1.0.6+

As you're using the new ESP32 cores v2.0.3 with built-inLIttleFS, you don't needLorol'sLITTLEFS library anymore. Especially you're using the recent PIO version supporting new ESP32 core v1.0.6+

You can try to comment out the following line inplatformio.ini

lorol/LittleFS_esp32@>=1.0.6

If not OK, try to compile using Arduino IDE to see if there is anything wrong with your installation. Then moving on to PIO.
Post the issue onPIO Forum for help if the problem persists.

Good Luck,

You must be logged in to vote
4 replies
@the-programmer
Comment options

Just to let you know, In Arduino the library compiles without issues. However the following library's need to be installed manually. (And that is not super clear).
ESPAsyncWebServer
AsyncTCP

@the-programmer
Comment options

Also, a link to the question in thePIO Forum.

@khoih-prog
Comment options

FromPIO Forum

| |-- ESP_DoubleResetDetector @ 1.3.1
| | |-- LittleFS_esp32 @ 1.0.6

As you're using new ESP32 core v1.0.6+, I think that you have to do something similar tofatal error: vfs_api.h: No such file or directory #11, such as remove all instances ofLittleFS_esp32 fromplatformio.ini andlibrary.json ofESP_DoubleResetDetector library.

@the-programmer
Comment options

For reference. I just got all the patches correct to getAsync_ConfigOnDoubleReset.ino working.
For.pio\libdeps\esp32dev\ESP_DoubleResetDetector\library.json

27,32d26<     {<       "owner": "lorol",<       "name": "LittleFS_esp32",<       "version": "^1.0.6",<       "platforms": ["espressif32"]<     }

For.pio\libdeps\esp32dev\ESPAsync_WiFiManager\library.json

49,54d48<     },<     {<       "owner": "lorol",<       "name": "LittleFS_esp32",<       "version": ">=1.0.6",<       "platforms": ["espressif32"]

For.pio\libdeps\esp32dev\ESP Async WebServer\src\ESPAsyncWebServer.h

27c27,28< #include "FS.h"---> //#include "FS.h"> #include <LittleFS.h>

Edit: The.pio\libdeps\esp32dev\LittleFS_esp32 needs to be removed as well.

Hope this helps someone

Answer selected bythe-programmer
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@the-programmer@khoih-prog

[8]ページ先頭

©2009-2025 Movatter.jp