Hi all, sorry for my first post being a question like this.
I’ve been trying to compile a project inside termux; I’ve went down to having a super simple setup just to try faster, the libs I need for the project itself and this main.cpp
:
cat src/main.cpp
#include <Arduino.h>
#include <SD_MMC.h>
// put function declarations here:
int myFunction(int, int);
void setup() {
// put your setup code here, to run once:
int result = myFunction(2, 3);
}
void loop() {
// put your main code here, to run repeatedly:
}
// put function definitions here:
int myFunction(int x, int y) {
return x + y;
}
For starters, this is my platformio.ini
:
cat platformio.ini
; PlatformIO Project Configuration File ; Build, upload, library, and advanced options for the project.
; Documentation: url redacted
[env:dfrobot_firebeetle2_esp32s3]
platform = espressif32
board = dfrobot_firebeetle2_esp32s3
framework = arduino
; Library Dependency Finder (LDF) mode
lib_ldf_mode = deep
; Libraries
lib_deps =
bxparks/AceButton@^1.10.1
densaugeo/base64@^1.4.0
espressif/esp32-camera@^2.0.4
dfrobot/DFRobot_GDL@^1.0.1
bodmer/TJpg_Decoder@^1.1.0
adafruit/Adafruit Fingerprint Sensor Library@^2.1.3
SPI
SD_MMC
Wire
bblanchon/ArduinoJson@^7.2.0
tzapu/WiFiManager@^2.0.17
I’ve checked just in case, to be sure there was nothing missing, running pio pkg install
, here is the output:
pio pkg install
Resolving dfrobot_firebeetle2_esp32s3 dependencies...
Already up-to-date.
And now, when I try to compile it, this is the output:
pio run
Processing dfrobot_firebeetle2_esp32s3 (platform: espressif32; board: dfrobot_firebeetle2_esp32s3; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/dfrobot_firebeetle2_esp32s3.html
PLATFORM: Espressif 32 (6.9.0) > DFRobot Firebeetle 2 ESP32-S3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB 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.20017.0 (2.0.17)
- 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 ~ deep, Compatibility ~ soft
Found 40 compatible libraries
Scanning dependencies...
Dependency Graph
|-- AceButton @ 1.10.1
|-- base64 @ 1.4.0
|-- DFRobot_GDL @ 1.0.1
|-- TJpg_Decoder @ 1.1.0
|-- Adafruit Fingerprint Sensor Library @ 2.1.3
|-- SPI @ 2.0.0
|-- SD_MMC @ 2.0.0
|-- Wire @ 2.0.0
|-- ArduinoJson @ 7.2.0
|-- WiFiManager @ 2.0.17
Building in release mode
Compiling .pio/build/dfrobot_firebeetle2_esp32s3/src/main.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [.pio/build/dfrobot_firebeetle2_esp32s3/src/main.cpp.o] Error 127
Compiling .pio/build/dfrobot_firebeetle2_esp32s3/libf64/AceButton/ace_button/AceButton.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [.pio/build/dfrobot_firebeetle2_esp32s3/libf64/AceButton/ace_button/AceButton.cpp.o] Error 127
I’ve tried:
- installing pio core downloading and running the python script, also tried directly from pip
- installing esp-idf manually too, running the install.py scripts inside as well, sourcing the variable’s file…
Doesn’t matter what I’ve done, it fails over and over by failing to run/find xtensa-esp32s3-elf-g++
.
I am not sure what I am doing wrong, perhaps is not even supposed to work…
Am I missing something?
pio system info -------------------------- ---------------------------------------------------------------------
PlatformIO Core 6.1.16
Python 3.12.7-final.0
System Type linux_aarch64
Platform Linux-5.15.123-android13-8-28577532-abX816BXXS4BXG7-aarch64-with-libc
File System Encoding utf-8
Locale Encoding utf-8 PlatformIO Core Directory /data/data/com.termux/files/home/.platformio
PlatformIO Core Executable /data/data/com.termux/files/home/.platformio/penv/bin/platformio Python Executable /data/data/com.termux/files/home/.platformio/penv/bin/python
Global Libraries 0
Development Platforms 1
Tools & Toolchains 5
-------------------------- ---------------------------------------------------------------------
Thank you in advance