Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot compile with arduino ide #7

Open
Denyreal opened this issue Feb 15, 2024 · 3 comments
Open

cannot compile with arduino ide #7

Denyreal opened this issue Feb 15, 2024 · 3 comments

Comments

@Denyreal
Copy link

Hi hope you're doing well

Thank you for your work.

As a newbie i'm a little sad to see absolutely ZERO instructions. :(

my board is :

https://www.wemos.cc/en/latest/s2/s2_mini.html

my board manager is

  • esp32 by espressif 2.0.14

i tried compile via arduinoIDE 2.3.1

  • AsyncTCP 1.1.4
  • ESP Async Webserver 2.7.0

i got errors :

/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:215:17: error: variable or field 'sendwebmsg' declared void
 void sendwebmsg(AsyncWebServerRequest *request, String htmMsg) {
                 ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:215:17: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:215:40: error: 'request' was not declared in this scope
 void sendwebmsg(AsyncWebServerRequest *request, String htmMsg) {
                                        ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:215:40: note: suggested alternative: 'renameat'
 void sendwebmsg(AsyncWebServerRequest *request, String htmMsg) {
                                        ^~~~~~~
                                        renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:215:56: error: expected primary-expression before 'htmMsg'
 void sendwebmsg(AsyncWebServerRequest *request, String htmMsg) {
                                                        ^~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:21: error: variable or field 'handleFwUpdate' declared void
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                     ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:21: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:44: error: 'request' was not declared in this scope
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                            ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:44: note: suggested alternative: 'renameat'
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                            ^~~~~~~
                                            renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:60: error: expected primary-expression before 'filename'
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                            ^~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:77: error: expected primary-expression before 'index'
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                             ^~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:92: error: expected primary-expression before '*' token
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                            ^
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:93: error: 'data' was not declared in this scope
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                             ^~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:93: note: suggested alternative: 'atan'
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                             ^~~~
                                                                                             atan
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:106: error: expected primary-expression before 'len'
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                                          ^~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:221:111: error: expected primary-expression before 'bool'
 void handleFwUpdate(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                                               ^~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:261:19: error: variable or field 'handleDelete' declared void
 void handleDelete(AsyncWebServerRequest *request) {
                   ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:261:19: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:261:42: error: 'request' was not declared in this scope
 void handleDelete(AsyncWebServerRequest *request) {
                                          ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:261:42: note: suggested alternative: 'renameat'
 void handleDelete(AsyncWebServerRequest *request) {
                                          ^~~~~~~
                                          renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:279:20: error: variable or field 'handleFileMan' declared void
 void handleFileMan(AsyncWebServerRequest *request) {
                    ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:279:20: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:279:43: error: 'request' was not declared in this scope
 void handleFileMan(AsyncWebServerRequest *request) {
                                           ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:279:43: note: suggested alternative: 'renameat'
 void handleFileMan(AsyncWebServerRequest *request) {
                                           ^~~~~~~
                                           renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:308:20: error: variable or field 'handleDlFiles' declared void
 void handleDlFiles(AsyncWebServerRequest *request) {
                    ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:308:20: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:308:43: error: 'request' was not declared in this scope
 void handleDlFiles(AsyncWebServerRequest *request) {
                                           ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:308:43: note: suggested alternative: 'renameat'
 void handleDlFiles(AsyncWebServerRequest *request) {
                                           ^~~~~~~
                                           renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:336:21: error: variable or field 'handlePayloads' declared void
 void handlePayloads(AsyncWebServerRequest *request) {
                     ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:336:21: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:336:44: error: 'request' was not declared in this scope
 void handlePayloads(AsyncWebServerRequest *request) {
                                            ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:336:44: note: suggested alternative: 'renameat'
 void handlePayloads(AsyncWebServerRequest *request) {
                                            ^~~~~~~
                                            renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:389:19: error: variable or field 'handleConfig' declared void
 void handleConfig(AsyncWebServerRequest *request) {
                   ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:389:19: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:389:42: error: 'request' was not declared in this scope
 void handleConfig(AsyncWebServerRequest *request) {
                                          ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:389:42: note: suggested alternative: 'renameat'
 void handleConfig(AsyncWebServerRequest *request) {
                                          ^~~~~~~
                                          renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:428:19: error: variable or field 'handleReboot' declared void
 void handleReboot(AsyncWebServerRequest *request) {
                   ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:428:19: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:428:42: error: 'request' was not declared in this scope
 void handleReboot(AsyncWebServerRequest *request) {
                                          ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:428:42: note: suggested alternative: 'renameat'
 void handleReboot(AsyncWebServerRequest *request) {
                                          ^~~~~~~
                                          renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:439:23: error: variable or field 'handleConfigHtml' declared void
 void handleConfigHtml(AsyncWebServerRequest *request) {
                       ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:439:23: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:439:46: error: 'request' was not declared in this scope
 void handleConfigHtml(AsyncWebServerRequest *request) {
                                              ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:439:46: note: suggested alternative: 'renameat'
 void handleConfigHtml(AsyncWebServerRequest *request) {
                                              ^~~~~~~
                                              renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:23: error: variable or field 'handleFileUpload' declared void
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                       ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:23: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:46: error: 'request' was not declared in this scope
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                              ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:46: note: suggested alternative: 'renameat'
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                              ^~~~~~~
                                              renameat
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:62: error: expected primary-expression before 'filename'
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                              ^~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:79: error: expected primary-expression before 'index'
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                               ^~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:94: error: expected primary-expression before '*' token
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                              ^
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:95: error: 'data' was not declared in this scope
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                               ^~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:95: note: suggested alternative: 'atan'
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                               ^~~~
                                                                                               atan
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:108: error: expected primary-expression before 'len'
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                                            ^~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:453:113: error: expected primary-expression before 'bool'
 void handleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
                                                                                                                 ^~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:477:38: error: 'AsyncWebServerRequest' has not been declared
 void handleConsoleUpdate(String rgn, AsyncWebServerRequest *request) {
                                      ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:537:17: error: variable or field 'handleInfo' declared void
 void handleInfo(AsyncWebServerRequest *request) {
                 ^~~~~~~~~~~~~~~~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:537:17: error: 'AsyncWebServerRequest' was not declared in this scope
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:537:40: error: 'request' was not declared in this scope
 void handleInfo(AsyncWebServerRequest *request) {
                                        ^~~~~~~
/tmp/.arduinoIDE-unsaved2024115-180056-fxihlx.odaf6/sketch_feb15b/ESP32_Server_900u.ino:537:40: note: suggested alternative: 'renameat'
 void handleInfo(AsyncWebServerRequest *request) {
                                        ^~~~~~~
                                        renameat

exit status 1

Compilation error: variable or field 'sendwebmsg' declared void

I tried to downgrade to 2.5.1 with the same result.

Any hint of help would be greatly appreciated.

Thank you ;)

@neo305
Copy link

neo305 commented Feb 16, 2024

You need to rename AsyncWebServerRequest to AsyncWebSrv in your ino file. or something like that. Let me find it.

@BramKelchtermans
Copy link

Did you resolve this issue? Am stumbling on it right now

@Tribb
Copy link
Contributor

Tribb commented Oct 30, 2024

install the esp32 core 2.0.14 as it seems to be the last one that does not break too much.
esp-idf 5+ has broken many libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants