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

Compile error #17

Open
michaelnum opened this issue Dec 1, 2024 · 1 comment
Open

Compile error #17

michaelnum opened this issue Dec 1, 2024 · 1 comment

Comments

@michaelnum
Copy link

Hello,
i want to make tests with the example "argparser.ino" with VisualStudioCode and Platformio, but i get the error:

Processing esp32-console-test (platform: espressif32@6.5.0; 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 (6.5.0) > 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 @ 2.0.14+sha.44da992 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Converting argparser.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP32Console @ 1.2.2
Building in release mode
Compiling .pio/build/esp32-console-test/src/argparser.ino.cpp.o
Archiving .pio/build/esp32-console-test/lib6e1/libWiFi.a
Indexing .pio/build/esp32-console-test/lib6e1/libWiFi.a
Compiling .pio/build/esp32-console-test/lib95a/ESP32Console/ESP32Console/Commands/SystemCommands.cpp.o
Compiling .pio/build/esp32-console-test/FrameworkArduino/FirmwareMSC.cpp.o
Compiling .pio/build/esp32-console-test/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pio/build/esp32-console-test/FrameworkArduino/HWCDC.cpp.o
Compiling .pio/build/esp32-console-test/FrameworkArduino/HardwareSerial.cpp.o
.pio/libdeps/esp32-console-test/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:7:10: fatal error: core_version.h: No such file or directory

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

 #include <core_version.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/esp32-console-test/lib95a/ESP32Console/ESP32Console/Commands/SystemCommands.cpp.o] Error 1
Compiling .pio/build/esp32-console-test/FrameworkArduino/IPAddress.cpp.o
=================================================================== [FAILED] Took 2.86 seconds 

What can i do?

@michaelnum
Copy link
Author

On ArduinoIDE V2 are other compile errors (fresh installed ArduinoIDE, only open argparser.ino and ESP32Console installed from LibraryManager):


/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp: In function 'int _pinmode(int, char**)':
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:19:20: error: 'stoul' is not a member of 'std'; did you mean 'strtoul'?
   19 |         pin = std::stoul(pin_str);
      |                    ^~~~~
      |                    strtoul
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:21:17: error: 'invalid_argument' in namespace 'std' does not name a type
   21 |     catch (std::invalid_argument ex)
      |                 ^~~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:23:59: error: 'ex' was not declared in this scope; did you mean 'exp'?
   23 |         fprintf(stderr, "Invalid argument for pin: %s\n", ex.what());
      |                                                           ^~
      |                                                           exp
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp: In function 'int _digitalWrite(int, char**)':
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:80:20: error: 'stoul' is not a member of 'std'; did you mean 'strtoul'?
   80 |         pin = std::stoul(pin_str);
      |                    ^~~~~
      |                    strtoul
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:82:17: error: 'invalid_argument' in namespace 'std' does not name a type
   82 |     catch (std::invalid_argument ex)
      |                 ^~~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:84:59: error: 'ex' was not declared in this scope; did you mean 'exp'?
   84 |         fprintf(stderr, "Invalid argument for pin: %s\n", ex.what());
      |                                                           ^~
      |                                                           exp
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp: In function 'int _digitalRead(int, char**)':
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:127:20: error: 'stoul' is not a member of 'std'; did you mean 'strtoul'?
  127 |         pin = std::stoul(pin_str);
      |                    ^~~~~
      |                    strtoul
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:129:17: error: 'invalid_argument' in namespace 'std' does not name a type
  129 |     catch (std::invalid_argument ex)
      |                 ^~~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:131:59: error: 'ex' was not declared in this scope; did you mean 'exp'?
  131 |         fprintf(stderr, "Invalid argument for pin: %s\n", ex.what());
      |                                                           ^~
      |                                                           exp
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp: In function 'int _analogRead(int, char**)':
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:168:20: error: 'stoul' is not a member of 'std'; did you mean 'strtoul'?
  168 |         pin = std::stoul(pin_str);
      |                    ^~~~~
      |                    strtoul
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:170:17: error: 'invalid_argument' in namespace 'std' does not name a type
  170 |     catch (std::invalid_argument ex)
      |                 ^~~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/GPIOCommands.cpp:172:59: error: 'ex' was not declared in this scope; did you mean 'exp'?
  172 |         fprintf(stderr, "Invalid argument for pin: %s\n", ex.what());
      |                                                           ^~
      |                                                           exp
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/NetworkCommands.cpp: In function 'void ipconfig_wlan()':
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/NetworkCommands.cpp:212:31: error: 'class WiFiClass' has no member named 'localIPv6'; did you mean 'localIP'?
  212 |     printf("IPv6: %s\n", WiFi.localIPv6().toString().c_str());
      |                               ^~~~~~~~~
      |                               localIP
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp: In function 'int sysInfo(int, char**)':
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:83:5: error: 'esp_chip_info_t' was not declared in this scope
   83 |     esp_chip_info_t info;
      |     ^~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:84:20: error: 'info' was not declared in this scope
   84 |     esp_chip_info(&info);
      |                    ^~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:84:5: error: 'esp_chip_info' was not declared in this scope
   84 |     esp_chip_info(&info);
      |     ^~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:97:28: error: 'CHIP_FEATURE_WIFI_BGN' was not declared in this scope
   97 |            info.features & CHIP_FEATURE_WIFI_BGN ? " 802.11bgn " : "",
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:98:28: error: 'CHIP_FEATURE_BLE' was not declared in this scope
   98 |            info.features & CHIP_FEATURE_BLE ? " BLE " : "",
      |                            ^~~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:99:28: error: 'CHIP_FEATURE_BT' was not declared in this scope
   99 |            info.features & CHIP_FEATURE_BT ? " BT " : "",
      |                            ^~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:100:28: error: 'CHIP_FEATURE_EMB_FLASH' was not declared in this scope
  100 |            info.features & CHIP_FEATURE_EMB_FLASH ? " Embedded-Flash " : " External-Flash ",
      |                            ^~~~~~~~~~~~~~~~~~~~~~
/home/michael/Arduino/libraries/ESP32Console/src/ESP32Console/Commands/SystemCommands.cpp:101:28: error: 'CHIP_FEATURE_EMB_PSRAM' was not declared in this scope
  101 |            info.features & CHIP_FEATURE_EMB_PSRAM ? " Embedded-PSRAM" : "");
      |                            ^~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: exit status 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