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

Problem with compilation #3

Open
Pretous opened this issue May 18, 2021 · 5 comments
Open

Problem with compilation #3

Pretous opened this issue May 18, 2021 · 5 comments

Comments

@Pretous
Copy link

Pretous commented May 18, 2021

Hello, when I try to compile it got errors like below:

In file included from c:\users\michal\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\assert.h:10,
from c:\users\michal\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\sys\reent.h:503,
from c:\users\michal\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\stdlib.h:18,
from c:\users\michal\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\c++\10.2.0\cstdlib:75,
from c:\users\michal\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\c++\10.2.0\stdlib.h:36,
from C:\Users\Michal\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\cores\esp8266/Arduino.h:27,
from sketch\ESPPWMFanControl.ino.cpp:1:
C:\Users\Michal\Documents\Arduino\libraries\WhareHauoraWiFiManager/WiFiManager.h:25:24: error: 'const char HTTP_HEAD []' redeclared as different kind of entity
25 | 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 sketch\ESPPWMFanControl.h:14,
from D:\Pobrane\ESPPWMFanControl-1.0-beta2\ESPPWMFanControl\ESPPWMFanControl.ino:9:
C:\Users\Michal\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:47:39: note: previous declaration 'HTTPMethod HTTP_HEAD'
47 | enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };
| ^~~~~~~~~
Multiple libraries were found for "WiFiUdp.h"
Used: C:\Users\Michal\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

The error come even with clean install of arduino IDE

@faeibson
Copy link
Owner

Hi,
are you sure you got the right WifiManager library? Your WifiManager.h is located within the directory "WhareHauoraWifiManager"... Via Google I can find out that this repo seems to be a quite outdated fork of tzapu's WifiManager which is the one you should be using actually.
So I think you just took the wrong library, uninstall it and use "WifiManager" by tzapu and you should be good!

Let me know if you could resolve the issue.

@Pretous
Copy link
Author

Pretous commented May 18, 2021

Yes, I used correct library - to compile it I had to change HTTP_HEAD to HTTP_HEADS in library and it goes but now I got problem with WiFi connection - every reset of esp it lost every settings.

@betmensk
Copy link

unfortunately this project died ...
cannot be compiled, constant errors in libraries and when the compilation succeeds, the access point refuses to connect ...

@faeibson
Copy link
Owner

I will be looking into it when I have more free time. At the moment I'm quite busy unfortunately. I will keep you updated here.

@burnbabyburn
Copy link

burnbabyburn commented Oct 15, 2021

The above errors seem to been fixed. ty
But brzo seems to have updated brzo_i2c to version 1.3.3 -which is buggy pasko-zh/brzo_i2c#44
In function 'brzo_i2c_write':
brzo_i2c.c:72:2: error: cannot find a register in class 'RL_REGS' while reloading 'asm' 72 | asm volatile (

If one downgrade to 1.3.2 it compiles

burnbabyburn added a commit to burnbabyburn/ESPPWMFanControl that referenced this issue Oct 17, 2021
Temporary fix to compile working code.
brzo_i2c has a bug in 1.3.3 - See issue faeibson#3 
ESP8266 platform has breaking changes in Versions >= 3.0.0 so use one below this version faeibson#4
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