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

fatal error: esp_websocket_client.h: No such file or directory #6

Open
mefenlon opened this issue Jan 12, 2025 · 2 comments
Open

fatal error: esp_websocket_client.h: No such file or directory #6

mefenlon opened this issue Jan 12, 2025 · 2 comments

Comments

@mefenlon
Copy link

I cloned the example template and attempted to build. Below is the output

 *  Executing task: platformio run 

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (53.3.11) > Espressif ESP32 Dev Module
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.1.1 
 - framework-arduinoespressif32-libs @ 5.3.0+sha.cfea4f7c98 
 - tool-esptoolpy @ 4.8.5 
 - tool-mklittlefs @ 3.2.0 
 - tool-riscv32-esp-elf-gdb @ 14.2.0+20240403 
 - tool-xtensa-esp-elf-gdb @ 14.2.0+20240403 
 - toolchain-xtensa-esp-elf @ 13.2.0+20240530
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ deep, Compatibility ~ soft
Found 46 compatible libraries
Scanning dependencies...
Dependency Graph
|-- SensESP @ 3.0.0
Building in release mode
Compiling .pio/build/esp32dev/src/main.cpp.o
Building .pio/build/esp32dev/bootloader.bin
Generating partitions .pio/build/esp32dev/partitions.bin
esptool.py v4.8.5
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Compiling .pio/build/esp32dev/lib275/ReactESP/event_loop.cpp.o
Compiling .pio/build/esp32dev/lib275/ReactESP/events.cpp.o
Compiling .pio/build/esp32dev/libe4e/AceButton/ace_button/AceButton.cpp.o
Compiling .pio/build/esp32dev/libe4e/AceButton/ace_button/ButtonConfig.cpp.o
Compiling .pio/build/esp32dev/libe4e/AceButton/ace_button/EncodedButtonConfig.cpp.o
Compiling .pio/build/esp32dev/libe4e/AceButton/ace_button/LadderButtonConfig.cpp.o
Compiling .pio/build/esp32dev/libe4e/AceButton/ace_button/testing/EventTracker.cpp.o
In file included from .pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_reader.h:8,
                 from .pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_input.h:5,
                 from src/main.cpp:14:
/Users/fenlon/.platformio/packages/framework-arduinoespressif32-libs/esp32/include/esp_adc/deprecated/include/esp_adc_cal.h:17:2: warning: #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h" [-Wcpp]
   17 | #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h"
      |  ^~~~~~~
Compiling .pio/build/esp32dev/lib4dc/Network/NetworkClient.cpp.o
Compiling .pio/build/esp32dev/lib4dc/Network/NetworkEvents.cpp.o
Compiling .pio/build/esp32dev/lib4dc/Network/NetworkInterface.cpp.o
Compiling .pio/build/esp32dev/lib4dc/Network/NetworkManager.cpp.o
In file included from .pio/libdeps/esp32dev/SensESP/src/sensesp/controllers/system_status_controller.h:5,
                 from .pio/libdeps/esp32dev/SensESP/src/sensesp_app.h:12,
                 from .pio/libdeps/esp32dev/SensESP/src/sensesp_app_builder.h:10,
                 from src/main.cpp:19:
.pio/libdeps/esp32dev/SensESP/src/sensesp/signalk/signalk_ws_client.h:7:10: fatal error: esp_websocket_client.h: No such file or directory

******************************************************************************
* Looking for esp_websocket_client.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_websocket_client.h"
* Web  > https://registry.platformio.org/search?q=header:esp_websocket_client.h
*
******************************************************************************

    7 | #include <esp_websocket_client.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/esp32dev/src/main.cpp.o] Error 1
==================================================== [FAILED] Took 2.07 seconds ====================================================

 *  The terminal process "platformio 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
@mefenlon
Copy link
Author

I am able to get the project to build by making the following changes to platformio.ini

[env:esp32dev]
platform = [email protected]

lib_deps =
  https://github.com/SignalK/SensESP.git

Using the SignalK/SensESP @ >=3.0.0-beta.6,<4.0.0-alpha.1 resulted in error

.pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_reader.h:28:30: error: 'ADC_ATTEN_DB_12' was not declared in this scope
   adc_atten_t attenuation_ = ADC_ATTEN_DB_12;

Same as in this issue SignalK/SensESP#730

@dagnum
Copy link

dagnum commented Jan 26, 2025

I have been stuck for months (busy at work and out of traveling) and spent hours trying to figure this same problem out. Thank goodness for seeing your posted issue. Thank you very much. Worked perfect.

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