-
Notifications
You must be signed in to change notification settings - Fork 1
unable to compile #1
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
Comments
Did you know about this project? |
Hello @Eisbaeeer , thank you for the pointer, I wasn't aware of esp8266-react that also works on ESP32. Lots of useful features! The UI configurable MQTT feature looks useful for a home lighting project am working on. Taking a deeper look... Are you still hitting build errors when trying to build these examples using my ESP32 branch forked from maakbaas's framework? https://github.com/aaronse/esp8266-iot-framework/tree/esp32 will try to repro... |
Hey @Eisbaeeer, just pushed couple of config tweaks. The following worked for me (Windows 10). Please excuse the verbose write up, planning to eventually update the doc with this content to help others as well.
|
@aaronse I will try it and give you a feedback here. ;-) |
Hi! I have successfully installed your version using the step by step provided above with ESP32 Wrover-IE. I didn't more tests yet. Thanks! |
Applying only the changes below to configManager example I have a crash loop.
|
Hello @FernandoGarcia, is configManager example that's crashing calling GUI.begin before WifiManager.begin? If so, try moving GUI.begin after WifiManager.begin, for example see... |
I have it working now. Now I have the setup in this order:
Thank you! |
Closing as resolved. |
Don't forget to fix the extra_scripts path pointed above. :) |
Thanks @FernandoGarcia! done, closing... |
Uh oh!
There was an error while loading. Please reload this page.
Hi.
I downloaded your example 1:1 and try to compile it.
Get following error (installed the wifimanager lib manually, too).
warning: Calling missing SConscript without error is deprecated. Transition by adding must_exist=False to SConscript calls. Missing SConscript 'C:\lib\esp8266-iot-framework\scripts\preBuild.py' File "C:\Users\lars\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 189, in <module> Compiling .pio\build\esp32dev\src\helloWorld.cpp.o Generating partitions .pio\build\esp32dev\partitions.bin Compiling .pio\build\esp32dev\lib126\AsyncTCP\AsyncTCP.cpp.o Compiling .pio\build\esp32dev\lib30b\FS\FS.cpp.o Compiling .pio\build\esp32dev\lib30b\FS\vfs_api.cpp.o In file included from src\helloWorld.cpp:10:0: .pio\libdeps\esp32dev\WiFiManager/WiFiManager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory
Edit: Hold on. I used the default iot-framework and not your´s. Will report.
New errors:
`warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=False to SConscript calls.
Missing SConscript 'scripts\preBuild.py'
File "C:\Users\lars.platformio\penv\lib\site-packages\platformio\builder\main.py", line 189, in
Compiling .pio\build\esp32dev\lib11a\ESP8266 IoT Framework\WiFiManager.cpp.o
Compiling .pio\build\esp32dev\lib11a\ESP8266 IoT Framework\certStore.cpp.o
Compiling .pio\build\esp32dev\lib11a\ESP8266 IoT Framework\configManager.cpp.o
Compiling .pio\build\esp32dev\lib11a\ESP8266 IoT Framework\dashboard.cpp.o
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/WiFiManager.cpp:5:10: fatal error: ESP8266WiFi.h: No such file or directory
#include <ESP8266WiFi.h>
^~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32dev\lib11a\ESP8266 IoT Framework\WiFiManager.cpp.o] Error 1
In file included from .pio/libdeps/esp32dev/ESP8266 IoT Framework/src/certStore.cpp:1:
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/certStore.h:9:10: fatal error: BearSSLHelpers.h: No such file or directory
#include <BearSSLHelpers.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32dev\lib11a\ESP8266 IoT Framework\certStore.cpp.o] Error 1
In file included from .pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:4:
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.h:31:38: error: 'std::function' has not been declared
void setConfigSaveCallback( std::function<void()> func );
^~~~~~~~
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.h:31:46: error: expected ',' or '...' before '<' token
void setConfigSaveCallback( std::function<void()> func );
^
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.h:35:9: error: 'function' in namespace 'std' does
not name a template type
std::function<void()> _configsavecallback;
^~~~~~~~
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.h:35:4: note: 'std::function' is defined in header ''; did you forget to '#include '?
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.h:6:1:
+#include
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.h:35:4:
std::function<void()> _configsavecallback;
^~~
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp: In member function 'void config::save()':
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:76:10: error: '_configsavecallback' was not declared in this scope
if ( _configsavecallback != NULL) {
^~~~~~~~~~~~~~~~~~~
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:76:10: note: suggested alternative: 'setConfigSaveCallback'
if ( _configsavecallback != NULL) {
^~~~~~~~~~~~~~~~~~~
setConfigSaveCallback
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp: At global scope:
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:81:42: error: variable or field 'setConfigSaveCallback' declared void
void config::setConfigSaveCallback( std::function<void()> func ) {
^~~~~~~~
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:81:42: error: 'function' is not a member of 'std'
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:81:42: note: 'std::function' is defined in header ''; did you forget to '#include '?
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:5:1:
+#include
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:81:42:
void config::setConfigSaveCallback( std::function<void()> func ) {
^~~~~~~~
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:81:59: error: 'func' was not declared in this
scope
void config::setConfigSaveCallback( std::function<void()> func ) {
^~~~
.pio/libdeps/esp32dev/ESP8266 IoT Framework/src/configManager.cpp:81:59: note: suggested alternative: 'sync'
void config::setConfigSaveCallback( std::function<void()> func ) {
^~~~
sync
*** [.pio\build\esp32dev\lib11a\ESP8266 IoT Framework\configManager.cpp.o] Error 1
========================================= [FAILED] Took 26.73 seconds =========================================`
The text was updated successfully, but these errors were encountered: