gsoros / ESPM

Cycling power meter on the ESP32
GNU General Public License v3.0
13 stars 1 forks source link

CircularBuffer Dependency #4

Open MinPopp opened 6 months ago

MinPopp commented 6 months ago

I get the following error when trying to Build All:

CircularBuffer.h: No such file or directory

Image of build ![image](https://github.com/gsoros/ESPM/assets/61125247/ed300409-653b-4968-bfc0-d5e34fe4c260)

It seems that in the commit https://github.com/gsoros/ESPM/commit/2350700590c0af56efde765f0a0e59186b34f64b some dependencies were changed for the CircularBuffer. Is it possible that one was lost?

gsoros commented 6 months ago

I've re-added the CircularBuffer dep, can you please try? I'm used to working with local copies of some libs for easier debugging and sometimes forget to revert the config. I'm sure there is a good way to deal with this...

MinPopp commented 6 months ago

Thank you, it seems that the CircularBuffer issue is solved, but I still get compile errors: image

Full build log ``` * Executing task: C:\Users\minPopp\.platformio\penv\Scripts\platformio.exe run Processing devel (platform: espressif32; board: lolin32_lite; framework: arduino) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin32_lite.html PLATFORM: Espressif 32 (6.6.0) > WEMOS LOLIN32 Lite HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES: - framework-arduinoespressif32 @ 3.20014.231204 (2.0.14) - tool-esptoolpy @ 1.40501.0 (4.5.1) - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5 LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 38 compatible libraries Scanning dependencies... Dependency Graph |-- libAtoll @ 1.0.0+sha.1748cd7 |-- MPU9250 @ 0.4.5+sha.0502235 |-- NimBLE-Arduino @ 2.0.0+sha.4cfd61a |-- HX711_ADC @ 1.2.8+sha.76d8e7d |-- CircularBuffer @ 1.3.3+sha.14af958 |-- Preferences @ 2.0.0 |-- Wire @ 2.0.0 Building in debug mode Compiling .pio\build\devel\src\api.cpp.o Compiling .pio\build\devel\src\ble_server.cpp.o Compiling .pio\build\devel\src\board.cpp.o Compiling .pio\build\devel\src\main.cpp.o Compiling .pio\build\devel\src\motion.cpp.o Compiling .pio\build\devel\src\mpu_temperature.cpp.o Compiling .pio\build\devel\src\power.cpp.o Compiling .pio\build\devel\src\status.cpp.o Compiling .pio\build\devel\src\strain.cpp.o Compiling .pio\build\devel\src\temperature.cpp.o Compiling .pio\build\devel\src\temperature_compensation.cpp.o Compiling .pio\build\devel\src\wifi.cpp.o Building .pio\build\devel\bootloader.bin Generating partitions .pio\build\devel\partitions.bin esptool.py v4.5.1 Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. Compiling .pio\build\devel\libb46\NimBLE-Arduino\NimBLE2904.cpp.o Compiling .pio\build\devel\libb46\NimBLE-Arduino\NimBLEAddress.cpp.o Compiling .pio\build\devel\libb46\NimBLE-Arduino\NimBLEAdvertisedDevice.cpp.o Compiling .pio\build\devel\libb46\NimBLE-Arduino\NimBLEAdvertising.cpp.o Compiling .pio\build\devel\libb46\NimBLE-Arduino\NimBLEBeacon.cpp.o In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/api.cpp:2: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/api.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/api.cpp:2: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/api.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient Compiling .pio\build\devel\libb46\NimBLE-Arduino\NimBLECharacteristic.cpp.o In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/ble_server.cpp:2: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/ble_server.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/ble_server.cpp:2: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/ble_server.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/board.cpp:1: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/board.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/board.cpp:1: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/board.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient *** [.pio\build\devel\src\api.cpp.o] Error 1 In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/main.cpp:3: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/main.cpp:3: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/main.cpp:3: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/main.cpp:3: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient *** [.pio\build\devel\src\ble_server.cpp.o] Error 1 In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/motion.cpp:1: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/motion.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/motion.cpp:1: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/motion.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient *** [.pio\build\devel\src\board.cpp.o] Error 1 In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/strain.cpp:1: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/strain.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/strain.cpp:1: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/strain.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/mpu_temperature.cpp:3: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/mpu_temperature.cpp:3: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/status.cpp:2: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/mpu_temperature.cpp:3: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/status.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/status.cpp:2: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/mpu_temperature.cpp:3: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial In file included from src/board.h:11, from src/status.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/power.cpp:2: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/power.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/power.cpp:2: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient In file included from src/board.h:11, from src/power.cpp:2: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial *** [.pio\build\devel\src\main.cpp.o] Error 1 .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/temperature.cpp:4: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/temperature.cpp:4: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/temperature.cpp:4: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/wifi.cpp:1: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/wifi.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/wifi.cpp:1: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ In file included from src/board.h:11, from src/temperature.cpp:4: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial In file included from .pio/libdeps/devel/libAtoll/src/atoll_ota.h:4, from .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:11, from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/temperature_compensation.cpp:4: C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ArduinoOTA.h:89:5: error: 'WiFiUDP' does not name a type WiFiUDP _udp_ota; ^~~~~~~ In file included from src/board.h:11, from src/wifi.cpp:1: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient In file included from src/WiFi.h:5, from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/temperature_compensation.cpp:4: .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi.h:73:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:6, from src/board.h:11, from src/temperature_compensation.cpp:4: src/WiFi.h:13:26: error: 'arduino_event_id_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~ src/WiFi.h:13:52: error: 'arduino_event_info_t' has not been declared virtual void onEvent(arduino_event_id_t event, arduino_event_info_t info) override; ^~~~~~~~~~~~~~~~~~~~ .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient In file included from src/board.h:11, from src/temperature_compensation.cpp:4: .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:54:5: error: 'WiFiServer' does not name a type; did you mean 'WifiSerial'? WiFiServer _server; ^~~~~~~~~~ WifiSerial .pio/libdeps/devel/libAtoll/src/atoll_wifi_serial.h:55:5: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'? WiFiClient _client; ^~~~~~~~~~ DNSClient *** [.pio\build\devel\src\motion.cpp.o] Error 1 src/wifi.cpp:4:20: error: variable or field 'onEvent' declared void void Wifi::onEvent(arduino_event_id_t event, arduino_event_info_t info) { ^~~~~~~~~~~~~~~~~~ src/wifi.cpp:4:20: error: 'arduino_event_id_t' was not declared in this scope *** [.pio\build\devel\src\strain.cpp.o] Error 1 *** [.pio\build\devel\src\mpu_temperature.cpp.o] Error 1 src/wifi.cpp:4:20: note: suggested alternative: 'arduino_phy_init' void Wifi::onEvent(arduino_event_id_t event, arduino_event_info_t info) { ^~~~~~~~~~~~~~~~~~ arduino_phy_init src/wifi.cpp:4:46: error: 'arduino_event_info_t' was not declared in this scope void Wifi::onEvent(arduino_event_id_t event, arduino_event_info_t info) { ^~~~~~~~~~~~~~~~~~~~ *** [.pio\build\devel\src\status.cpp.o] Error 1 *** [.pio\build\devel\src\power.cpp.o] Error 1 src/wifi.cpp:4:46: note: suggested alternative: 'arduino_phy_init' void Wifi::onEvent(arduino_event_id_t event, arduino_event_info_t info) { ^~~~~~~~~~~~~~~~~~~~ arduino_phy_init *** [.pio\build\devel\src\temperature.cpp.o] Error 1 *** [.pio\build\devel\src\temperature_compensation.cpp.o] Error 1 *** [.pio\build\devel\src\wifi.cpp.o] Error 1 =================================================================================================== [FAILED] Took 7.37 seconds =================================================================================================== Environment Status Duration ------------- -------- ------------ devel FAILED 00:00:07.368 ============================================================================================= 1 failed, 0 succeeded in 00:00:07.368 ============================================================================================= * The terminal process "C:\Users\minPopp\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it. ```

Interestingly, VSCode can resolve the WifiUDP class. Maybe it's also an issue on my side

gsoros commented 6 months ago

I've uncommented some more dependencies and ran a full build, no errors here.

I think the culprit is the different libAtoll versions:

but I don't know where this comes from.

build.log

MinPopp commented 6 months ago

Interesting

I updated the platform.ini file so it should use the exact versions that you use:

[env]
platform = espressif32@6.7.0
; platform = https://github.com/platformio/platform-espressif32.git#master
platform_packages = framework-arduinoespressif32@3.20016.0
; Disable dynamic toolchain configuration for upstream Arduino packages
; board_build.arduino.upstream_packages = no
board = lolin32_lite
framework = arduino
lib_extra_dirs = ~/wrk/libs
; lib_ldf_mode = deep+
lib_deps = 
    https://github.com/gsoros/libatoll.git#f0e9fe6
    https://github.com/gsoros/MPU9250.git#0502235
    ;https://github.com/h2zero/NimBLE-Arduino.git#master
    https://github.com/gsoros/NimBLE-Arduino.git#4cfd61a
    https://github.com/gsoros/HX711_ADC.git#76d8e7d
    ;rlogiacco/CircularBuffer@^1.3.3
    https://github.com/gsoros/CircularBuffer.git#14af958
    https://github.com/gsoros/VescUart.git#5d7b831
    ;https://github.com/PaulStoffregen/OneWire.git
    https://github.com/gsoros/OneWire.git#b175ac0
    ;https://github.com/milesburton/Arduino-Temperature-Control-Library.git
    https://github.com/gsoros/Arduino-Temperature-Control-Library.git

and according to my build log it uses the same now. But somehow, it still fails...

gsoros commented 6 months ago

Can you check if the file C:/Users/minPopp/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiUdp.h is present?

MinPopp commented 6 months ago

In the packages folder i have contains three framework-arduinoespressif32 folders:

framework-arduinoespressif32
framework-arduinoespressif32@3.20006.221224
framework-arduinoespressif32@3.20014.231204

and all of them contain a WiFiUdp.h in libraries/WiFi/src/

gsoros commented 6 months ago

Hmm, in that case I'm out of ideas, because your first error is "'WiFiUDP' does not name a type" while it is defined in that file. Maybe delete the .pio folder in the project and retry?