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

error compiling #31

Open
jruibarroso opened this issue Jan 23, 2021 · 3 comments
Open

error compiling #31

jruibarroso opened this issue Jan 23, 2021 · 3 comments

Comments

@jruibarroso
Copy link

Hi,
got this error on compiling:

Arduino: 1.8.13 (Mac OS X), Placa:"WeMos D1 R1, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from /Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0,
from /Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63,
from /Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/Arduino.h:32,
from /Users/jruibarroso/Documents/Arduino/libraries/autotimezone/autotimezone.h:12,
from /Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/ESP8266EASTRON.ino:1:
/Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:25:130: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol
#define PROGMEM attribute((section( "".irom.text." FILE "." __STRINGIZE(LINE) "." __STRINGIZE(COUNTER) """)))
^
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:35:24: note: in expansion of macro 'PROGMEM'
const char HTTP_HEAD[] PROGMEM = "<html lang="en"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/><title>{v}</title>";
^
In file included from /Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:17:0,
from sketch/general.h:3,
from /Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/ESP8266EASTRON.ino:27:
/Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WebServer/src/ESP8266WebServer.h:34:39: error: previous declaration of 'HTTPMethod HTTP_HEAD'
enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };
^
/Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/general.ino: In function 'void wifiSetup(bool)':
general:102:15: error: no matching function for call to 'WiFiManager::WiFiManager()'
WiFiManager wifiManager;
^
/Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/general.ino:102:15: note: candidates are:
In file included from sketch/general.h:3:0,
from /Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/ESP8266EASTRON.ino:27:
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:77:5: note: WiFiManager::WiFiManager(TPrint&)
WiFiManager(TPrint &prn);
^
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:77:5: note: candidate expects 1 argument, 0 provided
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:74:7: note: WiFiManager::WiFiManager(WiFiManager&&)
class WiFiManager
^
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:74:7: note: candidate expects 1 argument, 0 provided

exit status 1
no matching function for call to 'WiFiManager::WiFiManager()'

Can you help me please ?

@merlokk
Copy link
Owner

merlokk commented Jan 23, 2021

Hi
I think it too much outdated(
here:
https://github.com/merlokk/SmartHome/releases
old versions of sources and libraries
needs to compile with them or update the project to use the new libs versions

@jruibarroso
Copy link
Author

jruibarroso commented Jan 23, 2021 via email

@merlokk
Copy link
Owner

merlokk commented Jan 24, 2021

It looks that WifiManager have not installed

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

2 participants