Closed baptistereb closed 3 weeks ago
it's fix, waiting for merge. See https://github.com/CapibaraZero/BLEScanner/pull/2
fw repo compiles correctly but I'll merge since arduinoJson version changed in project
platformio run
Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html PLATFORM: Espressif 32 (6.9.0) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM) HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash DEBUG: Current (esp-builtin) On-board (esp-builtin) 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:
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attack_tasks.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: error: deleted function 'virtual AdvertisedScannedDeviceCallback::~AdvertisedScannedDeviceCallback()' overriding non-deleted function
class AdvertisedScannedDeviceCallback : public NimBLEAdvertisedDeviceCallbacks {
^~~~~~~
In file included from .pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEScan.h:20,
from .pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEDevice.h:22,
from .pio/libdeps/esp32-s3-devkitc-1/AppleJuice/AppleJuice.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:21,
from lib/bluetooth_attacks/ble_attack_tasks.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h:191:13: note: overridden function is 'virtual NimBLEAdvertisedDeviceCallbacks::~NimBLEAdvertisedDeviceCallbacks()'
virtual ~NimBLEAdvertisedDeviceCallbacks() {}
^
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attack_tasks.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: note: 'virtual AdvertisedScannedDeviceCallback::~AdvertisedScannedDeviceCallback()' is implicitly deleted because the default definition would be ill-formed:
class AdvertisedScannedDeviceCallback : public NimBLEAdvertisedDeviceCallbacks {
^~~~~~~
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: error: 'ArduinoJson::V6215PB2::JsonDocument::~JsonDocument()' is protected within this context
In file included from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/BasicJsonDocument.hpp:7,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/DynamicJsonDocument.hpp:7,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson.hpp:33,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson.h:9,
from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:21,
from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attack_tasks.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/JsonDocument.hpp:286:3: note: declared protected here
~JsonDocument() {}
^
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attack_tasks.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp: In member function 'void AdvertisedScannedDeviceCallback::shrink_result()':
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:28:24: error: 'class ArduinoJson::V6215PB2::JsonDocument' has no member named 'shrinkToFit'
advertised_devices.shrinkToFit();
^~~
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/bluetooth_attacks.cpp:18:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: error: deleted function 'virtual AdvertisedScannedDeviceCallback::~AdvertisedScannedDeviceCallback()' overriding non-deleted function
class AdvertisedScannedDeviceCallback : public NimBLEAdvertisedDeviceCallbacks {
^~~~~~~
In file included from .pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEScan.h:20,
from .pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEDevice.h:22,
from .pio/libdeps/esp32-s3-devkitc-1/AppleJuice/AppleJuice.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.cpp:18:
.pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h:191:13: note: overridden function is 'virtual NimBLEAdvertisedDeviceCallbacks::~NimBLEAdvertisedDeviceCallbacks()'
virtual ~NimBLEAdvertisedDeviceCallbacks() {}
^
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/bluetooth_attacks.cpp:18:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: note: 'virtual AdvertisedScannedDeviceCallback::~AdvertisedScannedDeviceCallback()' is implicitly deleted because the default definition would be ill-formed:
class AdvertisedScannedDeviceCallback : public NimBLEAdvertisedDeviceCallbacks {
^~~~~~~
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: error: 'ArduinoJson::V6215PB2::JsonDocument::~JsonDocument()' is protected within this context
In file included from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/BasicJsonDocument.hpp:7,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/DynamicJsonDocument.hpp:7,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson.hpp:33,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson.h:9,
from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:21,
from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/bluetooth_attacks.cpp:18:
.pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/JsonDocument.hpp:286:3: note: declared protected here
~JsonDocument() {}
^
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/bluetooth_attacks.cpp:18:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp: In member function 'void AdvertisedScannedDeviceCallback::shrink_result()':
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:28:24: error: 'class ArduinoJson::V6215PB2::JsonDocument' has no member named 'shrinkToFit'
advertised_devices.shrinkToFit();
^~~
Archiving .pio/build/esp32-s3-devkitc-1/lib34e/libsdcard_helper.a
Indexing .pio/build/esp32-s3-devkitc-1/lib34e/libsdcard_helper.a
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attacks_btn.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: error: deleted function 'virtual AdvertisedScannedDeviceCallback::~AdvertisedScannedDeviceCallback()' overriding non-deleted function
class AdvertisedScannedDeviceCallback : public NimBLEAdvertisedDeviceCallbacks {
^~~~~~~
In file included from .pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEScan.h:20,
from .pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEDevice.h:22,
from .pio/libdeps/esp32-s3-devkitc-1/AppleJuice/AppleJuice.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:21,
from lib/bluetooth_attacks/ble_attacks_btn.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h:191:13: note: overridden function is 'virtual NimBLEAdvertisedDeviceCallbacks::~NimBLEAdvertisedDeviceCallbacks()'
virtual ~NimBLEAdvertisedDeviceCallbacks() {}
^
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attacks_btn.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: note: 'virtual AdvertisedScannedDeviceCallback::~AdvertisedScannedDeviceCallback()' is implicitly deleted because the default definition would be ill-formed:
class AdvertisedScannedDeviceCallback : public NimBLEAdvertisedDeviceCallbacks {
^~~~~~~
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:24:7: error: 'ArduinoJson::V6215PB2::JsonDocument::~JsonDocument()' is protected within this context
In file included from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/BasicJsonDocument.hpp:7,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/DynamicJsonDocument.hpp:7,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson.hpp:33,
from .pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson.h:9,
from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:21,
from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attacks_btn.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/ArduinoJson@6.21.5/src/ArduinoJson/Document/JsonDocument.hpp:286:3: note: declared protected here
~JsonDocument() {}
^
In file included from .pio/libdeps/esp32-s3-devkitc-1/BLEScanner/BLEScanner.hpp:21,
from lib/bluetooth_attacks/bluetooth_attacks.hpp:22,
from lib/bluetooth_attacks/ble_attacks_btn.cpp:20:
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp: In member function 'void AdvertisedScannedDeviceCallback::shrink_result()':
.pio/libdeps/esp32-s3-devkitc-1/BLEScanner/AdvertisedScannedDeviceCallback.hpp:28:24: error: 'class ArduinoJson::V6215PB2::JsonDocument' has no member named 'shrinkToFit'
advertised_devices.shrinkToFit();
^~~
Compiling .pio/build/esp32-s3-devkitc-1/lib683/ir_attacks/ir_attacks.cpp.o
[.pio/build/esp32-s3-devkitc-1/lib472/bluetooth_attacks/bluetooth_attacks.cpp.o] Error 1
[.pio/build/esp32-s3-devkitc-1/lib472/bluetooth_attacks/ble_attack_tasks.cpp.o] Error 1
*** [.pio/build/esp32-s3-devkitc-1/lib472/bluetooth_attacks/ble_attacks_btn.cpp.o] Error 1
thank's for merging
Describe the bug In platformio.ini, we call BLEScanner, which requires "ArduinoJson 6.21.4" to work, but the project needs ArduinoJson 7.2. When i try to "pio run", it fails.
To Reproduce Just try to compile the project (but I'm not sure if I'm the only one experiencing this issue).