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

Problems compiling the ESP32_SWD_wifi #13

Open
lwlbeng opened this issue Nov 20, 2021 · 9 comments
Open

Problems compiling the ESP32_SWD_wifi #13

lwlbeng opened this issue Nov 20, 2021 · 9 comments

Comments

@lwlbeng
Copy link

lwlbeng commented Nov 20, 2021

`In file included from C:\Users\L\Downloads\ESP32_nRF52_SWD-main\ESP32_nRF52_SWD-main\ESP32_SWD_WIFI\ESP32_SWD_WIFI.ino:1:

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:371:7: error: 'wifi_country_t' does not name a type; did you mean 'fsfilcnt_t'?

const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

   ^~~~~~~~~~~~~~

   fsfilcnt_t

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:372:7: error: 'wifi_country_t' does not name a type; did you mean 'fsfilcnt_t'?

const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

   ^~~~~~~~~~~~~~

   fsfilcnt_t

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:373:7: error: 'wifi_country_t' does not name a type; did you mean 'fsfilcnt_t'?

const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

   ^~~~~~~~~~~~~~

   fsfilcnt_t

In file included from C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/WiFiManager.h:109,

             from C:\Users\L\Downloads\ESP32_nRF52_SWD-main\ESP32_nRF52_SWD-main\ESP32_SWD_WIFI\web.cpp:15:

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:371:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope

const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:371:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'

const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                          CONFIG_ESP_PHY_MAX_TX_POWER

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:372:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope

const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:372:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'

const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                          CONFIG_ESP_PHY_MAX_TX_POWER

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:373:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope

const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:373:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'

const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                          CONFIG_ESP_PHY_MAX_TX_POWER

Multiple libraries were found for "WiFi.h"`

@atc1441
Copy link
Owner

atc1441 commented Nov 20, 2021

Looks like you have multible/ the wrong WifiManager librarys installed. This project needs a special one mentioned in the readme

Please check that.

Also please check using a portable Arduino IDE

@lwlbeng
Copy link
Author

lwlbeng commented Nov 20, 2021

Can you give the version of each library??

@lwlbeng
Copy link
Author

lwlbeng commented Nov 22, 2021

The WiFiManager latest code has the following error

In file included from /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/WiFiManager.h:109, from /Users/l/winShare/esp32/ESP32_nRF52_SWD-main/ESP32_SWD_WIFI/web.cpp:15: /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:371:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:371:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER' const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CONFIG_ESP_PHY_MAX_TX_POWER /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:372:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:372:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER' const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CONFIG_ESP_PHY_MAX_TX_POWER /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:373:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:373:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER' const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CONFIG_ESP_PHY_MAX_TX_POWER

@lwlbeng
Copy link
Author

lwlbeng commented Nov 22, 2021

WiFiManager version 0.16 has the following error
In file included from /Users/l/winShare/esp32/ESP32_nRF52_SWD-main/ESP32_SWD_WIFI/web.cpp:15: /Users/l/Documents/Arduino/libraries/WiFiManager-78f00ffe0a579609a9da922e1fa0df9e81b80296/WiFiManager.h:16:10: fatal error: ESP8266WiFi.h: No such file or directory #include <ESP8266WiFi.h> ^~~~~~~~~~~~~~~ compilation terminated.

@vgmjrp
Copy link

vgmjrp commented Nov 29, 2021

any updates? I'm having exactly the same issues. I strictly used the linked libs (clean sheet Arduino IDE) and even tried different commits of the asyncwebserver-branch. The issue were also reproduced on a portable Arduino IDE.

@atc1441
Copy link
Owner

atc1441 commented Nov 29, 2021

Could you please try it with PlatformIO as well ?

@vgmjrp
Copy link

vgmjrp commented Nov 29, 2021

Seems to be an issue with the ESP32 core (2.x.x) and the asyncwebserver-branch. ->espressif/arduino-esp32#5821

My workaround was to simply use ESP32 Ver. 1.0.6. Perhaps you can add this information to README.md

@atc1441
Copy link
Owner

atc1441 commented Nov 29, 2021

Added it to the readme just now

@ANTI443
Copy link

ANTI443 commented Dec 7, 2021

Just to add, same issue... v1.0.6 worked for me also!

ArduinoOTA : by Juraj Andrassy Version 1.0.6

Thanks!

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