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

Error on build: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context #2

Open
chadlipscomb opened this issue Jul 23, 2024 · 0 comments

Comments

@chadlipscomb
Copy link

Unfortunately I can't build the firmware.

Full build output:
`Processing bpi_leaf_s3 (platform: espressif32; board: bpi_leaf_s3; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/bpi_leaf_s3.html
PLATFORM: Espressif 32 (6.7.0) > BPI-Leaf-S3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, 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.20016.0 (2.0.16)
  • tool-esptoolpy @ 1.40501.0 (4.5.1)
  • toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
  • toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 39 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- Adafruit NeoPixel @ 1.12.3
    |-- Adafruit MPU6050 @ 2.2.6
    |-- Adafruit Unified Sensor @ 1.1.14
    |-- USB @ 2.0.0
    |-- Wire @ 2.0.0
    |-- WiFi @ 2.0.0
    |-- Preferences @ 2.0.0
    Building in release mode
    Compiling .pio/build/bpi_leaf_s3/src/events.cpp.o
    Compiling .pio/build/bpi_leaf_s3/src/main.cpp.o
    src/events.cpp: In member function 'void Event::keyboard_press(String)':
    src/events.cpp:123:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 1;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:124:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:128:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 2;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:129:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:133:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 4;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:134:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:138:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 8;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:139:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:143:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 16;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:144:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:148:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 32;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:149:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:153:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 64;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:154:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:158:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers |= 128;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:159:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp: In member function 'void Event::keyboard_release(String)':
    src/events.cpp:181:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~1;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:182:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:186:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~2;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:187:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:191:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~4;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:192:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:196:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~8;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:197:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:201:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~16;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:202:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:206:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~32;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:207:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:211:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~64;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:212:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:216:26: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard._keyReport.modifiers &= ~128;
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    src/events.cpp:217:47: error: 'KeyReport USBHIDKeyboard::_keyReport' is private within this context
    Keyboard.sendReport(&Keyboard._keyReport);
    ^~~~~~~~~~
    In file included from include/events.h:6,
    from src/events.cpp:1:
    /Users/chad/.platformio/packages/framework-arduinoespressif32/libraries/USB/src/USBHIDKeyboard.h:116:15: note: declared private here
    KeyReport _keyReport;
    ^~~~~~~~~~
    Compiling .pio/build/bpi_leaf_s3/lib064/USB/USBHID.cpp.o
    *** [.pio/build/bpi_leaf_s3/src/events.cpp.o] Error 1`
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

1 participant