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 compiling #2

Open
black3ye5 opened this issue Aug 27, 2021 · 5 comments
Open

problem compiling #2

black3ye5 opened this issue Aug 27, 2021 · 5 comments

Comments

@black3ye5
Copy link

Hello! can you help me compile this? i have instaled and reinstaled vscode & platformio but without any improvements. Can you help me a bit with this?

@rvt
Copy link
Owner

rvt commented Aug 28, 2021

I can help but unfortunately I am not a mindreader...

Can you let me know what is wrong, for example during compilation what errors you see etc..

@black3ye5
Copy link
Author

this is what i get. I'm not a programmer :), so if you can help me compile this, i will be greatful!

PS C:\Users\BIOS\Desktop\rc\headtracker-master> # Build char* array for web
PS C:\Users\BIOS\Desktop\rc\headtracker-master> ./generateHtmlArray.sh
PS C:\Users\BIOS\Desktop\rc\headtracker-master> platformio run --target upload -e wemos
Processing wemos (platform: espressif8266; framework: arduino; board: esp01_1m)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (3.2.0) > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:

  • framework-arduinoespressif8266 3.30002.0 (3.0.2)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.30000.201119 (3.0.0)
  • tool-mklittlefs 1.203.210628 (2.3)
  • tool-mkspiffs 1.200.0 (2.0)
  • toolchain-xtensa 2.100300.210717 (10.3.0)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 43 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 0.0.0-alpha+sha.fbde122cc5
    | |-- 0.0.0-alpha+sha.460d810002
    | | |-- 1.0
    |-- 1.3.2
    |-- 6.18.3
    |-- 0.16.0
    | |-- 1.1.1
    | | |-- 1.0
    | |-- 1.0
    | | |-- 1.0
    | |-- 1.0
    |-- 0.0.0-alpha+sha.460d810002
    | |-- 1.0
    |--
    | |-- 6.18.3
    |--
    | |-- 6.18.3
    | |--
    | | |-- 6.18.3
    | |-- 0.0.0-alpha+sha.fbde122cc5
    | | |-- 0.0.0-alpha+sha.460d810002
    | | | |-- 1.0
    |-- 1.0
    Building in release mode
    Compiling .pio\build\wemos\src\main.cpp.o
    src\main.cpp: In function 'bool loadAddressInfoFromConfig()':
    src\main.cpp:111:60: warning: 'typename ArduinoJson6183_91::enable_if<ArduinoJson6183_91::is_same<T, char*>::value, const char*>::type ArduinoJson6183_91::MemberProxy<TParent, TStringRef>::as() const [with T = char*; TObject
    = ArduinoJson6183_91::JsonDocument&; TStringRef = const char*; typename ArduinoJson6183_91::enable_if<ArduinoJson6183_91::is_same<T, char*>::value, const char*>::type = const char*]' is deprecated: Replace as<char*>() with as<const char*>() [-Wdeprecated-declarations]
    111 | const char* tmp = json["tracker_server"].as<char*>();
    | ^
    In file included from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Document/JsonDocument.hpp:9,
    from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Document/BasicJsonDocument.hpp:7,
    from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Document/DynamicJsonDocument.hpp:7,
    from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson.hpp:21,
    from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson.h:9,
    from src\main.cpp:20:
    .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Object/MemberProxy.hpp:79:7: note: declared here
    79 | as() const {
    | ^~
    src\main.cpp: In function 'void serverOnlineCallback()':
    src\main.cpp:189:8: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    189 | wm.server->on(JBONE_URI, {
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In lambda function:
    src\main.cpp:190:12: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    190 | wm.server->sendHeader("Content-Encoding", "gzip");
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp:191:12: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    191 | wm.server->setContentLength(jscript_js_gz_len);
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp:192:12: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    192 | wm.server->send(200, "application/javascript", "");
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp:193:12: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    193 | wm.server->sendContent_P((char*)jscript_js_gz, jscript_js_gz_len);
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In function 'void serverOnlineCallback()':
    src\main.cpp:196:8: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    196 | wm.server->on(ZERO_URI, {
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In lambda function:
    src\main.cpp:210:12: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    210 | wm.server->send(200, "application/javascript", "{}");
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In function 'void serverOnlineCallback()':
    src\main.cpp:213:8: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    213 | wm.server->on(TRACK_PEEK_URI, {
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In lambda function:
    src\main.cpp:224:12: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    224 | wm.server->setContentLength(strlen(payloadBuffer));
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp:225:12: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    225 | wm.server->send(200, F("application/javascript"), payloadBuffer);
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In function 'void serverOnlineCallback()':
    src\main.cpp:228:8: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    228 | wm.server->on(STORE_CALIBRATION_URI, {
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In lambda function:
    src\main.cpp:235:16: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    235 | wm.server->send(200, F("application/javascript"), "");
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp:236:36: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    236 | WiFiClient client = wm.server->client();
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp:241:16: error: 'std::unique_ptr<esp8266webserver::ESP8266WebServerTemplate > WiFiManager::server' is private within this context
    241 | wm.server->send(200, F("application/json"), F("{"status":"error", "message":"MPU is not ready, please check hardware."}"));
    | ^~~~~~
    In file included from src\main.cpp:19:
    .pio\libdeps\wemos\WiFiManager/WiFiManager.h:123:39: note: declared private here
    123 | std::unique_ptr server;
    | ^~~~~~
    src\main.cpp: In function 'bool loadTrackConfig()':
    src\main.cpp:252:9: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
    252 | if (SPIFFS.begin()) {
    | ^~~~~~
    In file included from src\main.cpp:17:
    C:\Users\BIOS.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:275:15: note: declared here
    275 | extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
    | ^~~~~~
    src\main.cpp:255:13: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
    255 | if (SPIFFS.exists(TRACKER_CONFIG_FILENAME)) {
    | ^~~~~~
    In file included from src\main.cpp:17:
    C:\Users\BIOS.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:275:15: note: declared here
    275 | extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
    | ^~~~~~
    src\main.cpp:258:31: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
    258 | File configFile = SPIFFS.open(TRACKER_CONFIG_FILENAME, "r");
    | ^~~~~~
    In file included from src\main.cpp:17:
    C:\Users\BIOS.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:275:15: note: declared here
    275 | extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
    | ^~~~~~
    src\main.cpp: In function 'bool saveConfigSPIFFS()':
    src\main.cpp:284:9: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
    284 | if (SPIFFS.begin()) {
    | ^~~~~~
    In file included from src\main.cpp:17:
    C:\Users\BIOS.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:275:15: note: declared here
    275 | extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
    | ^~~~~~
    src\main.cpp:287:13: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
    287 | if (SPIFFS.begin()) {
    | ^~~~~~
    In file included from src\main.cpp:17:
    C:\Users\BIOS.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:275:15: note: declared here
    275 | extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
    | ^~~~~~
    src\main.cpp:288:31: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
    288 | File configFile = SPIFFS.open(TRACKER_CONFIG_FILENAME, "w");
    | ^~~~~~
    In file included from src\main.cpp:17:
    C:\Users\BIOS.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:275:15: note: declared here
    275 | extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
    | ^~~~~~
    src\main.cpp: In function 'void setup()':
    src\main.cpp:315:8: error: 'class WiFiManager' has no member named 'setClass'
    315 | wm.setClass("invert");
    | ^~~~~~~~
    src\main.cpp:328:8: error: 'class WiFiManager' has no member named 'setSaveParamsCallback'; did you mean 'setSaveConfigCallback'?
    328 | wm.setSaveParamsCallback(saveParamCallback);
    | ^~~~~~~~~~~~~~~~~~~~~
    | setSaveConfigCallback
    src\main.cpp:331:8: error: 'class WiFiManager' has no member named 'setMenu'
    331 | wm.setMenu(menu);
    | ^~~~~~~
    src\main.cpp:336:8: error: 'class WiFiManager' has no member named 'setCountry'
    336 | wm.setCountry("US"); // setting wifi country seems to improve OSX soft ap connectivity, may help others as well
    | ^~~~~~~~~~
    src\main.cpp:338:8: error: 'class WiFiManager' has no member named 'setWebServerCallback'
    338 | wm.setWebServerCallback(serverOnlineCallback);
    | ^~~~~~~~~~~~~~~~~~~~
    src\main.cpp:350:8: error: 'class WiFiManager' has no member named 'startWebPortal'; did you mean 'startConfigPortal'?
    350 | wm.startWebPortal();
    | ^~~~~~~~~~~~~~
    | startConfigPortal
    src\main.cpp:356:29: error: 'class WiFiManagerParameter' has no member named 'setValue'; did you mean 'getValue'?
    356 | custom_track_server.setValue(json["tracker_server"], 40);
    | ^~~~~~~~
    | getValue
    src\main.cpp:357:27: error: 'class WiFiManagerParameter' has no member named 'setValue'; did you mean 'getValue'?
    357 | custom_track_port.setValue(json["tracker_port"], 5);
    | ^~~~~~~~
    | getValue
    src\main.cpp:358:31: error: 'class WiFiManagerParameter' has no member named 'setValue'; did you mean 'getValue'?
    358 | custom_track_protocol.setValue(json["tracker_protocol"], 12);
    | ^~~~~~~~
    | getValue
    src\main.cpp:382:23: error: expected type-specifier before 'HWHeadTrackmpu9250'
    382 | hwTrack.reset(new HWHeadTrackmpu9250());
    | ^~~~~~~~~~~~~~~~~~
    src\main.cpp: In function 'void loop()':
    src\main.cpp:415:16: error: 'class WiFiManager' has no member named 'process'
    415 | wm.process();
    | ^~~~~~~
    src\main.cpp:417:56: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
    417 | if (transitionCounter % UPDATES_PER_SECOND == slot - 1) {
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
    *** [.pio\build\wemos\src\main.cpp.o] Error 1

@rvt
Copy link
Owner

rvt commented Aug 29, 2021

Seems like the wifimanager was changed and was not backward compatible.

I can take a look at that this week and see what gives...

@black3ye5
Copy link
Author

thanks you very much! i s there any other version working with this?

@rvt
Copy link
Owner

rvt commented Aug 29, 2021

I am pretty sure that the developer of WifiManager changed the interface and since we pull in latest version the build fails.
Nothing to be done bu we need to follow his new specification..

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