Closed ukoda closed 1 year ago
For what it's worth, I had a similar problem with the same error message trying to use PlatformIO on Windows 10. I carefully followed the instructions several different times and tried to resolve the issue over several days but eventually gave up. It was very frustrating.
I tried installing the Espressif IDE and noticed that the compiler was installed as part of that software. On my Windows 10 machine, it was located in C:\Users\bruce.espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin
@brucekissinger Yes, I have the needed tool chain on my system from a prior Espressif environment, but it is not on path. Putting it on path does fix the problem, for me, but I think the root cause should be determined and addressed so the next newbie doesn't have a negative experience too.
Having kludged the project to attempt build by putting a suitable tool chain on path it is now throwing a build error about pins_arduino.h
being missing. While I could create a new issue for that it does feel like it related to this issue and I do continue to wonder if the set up of this project is making undocumented assumptions about what is already present on a system and therefore is failing to install all the needed dependencies.
Progress. While the pins_arduino.h
issue remains I have resolved the original compiler issue. From reading (https://community.platformio.org/t/fatal-error-pins-arduino-h-no-such-file-or-directory/19634/13) I figured I may have stale PlatformIO files for years ago when I abandon PlatformIO at the time it moved from open source to a closed model. In my case I closed VS Code, removed the tool chain I had manually added to the path and removed:
After doing that I was able to build to the point it couldn't find the pins_arduino.h file.
I am trying to build the the T-Watch-S3 example on a Linux Mint 21.1 x86_64 system but it does not appear to be finding the compiler.
Before attempting to work with the T-Watch-S3 I set up VC Code with the PlatformIO extension and was able to successfully build and flash an older T-Watch 2020. However the build fails for the T-Watch-S3 which uses a different compiler.
I followed the (https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/tree/t-watch-s3#1%EF%B8%8F%E2%83%A3-platformio-quick-start-) steps but suspect there is either an additional undocumented step I need to follow or the project is not set up to ensure the needed tool chain is installed. Specifically I:
t-watch-s3
branch.sh: 1: xtensa-esp32s3-elf-g++: not found
error.env:twatch-3
.sh: 1: xtensa-esp32s3-elf-g++: not found
error.The full output seen is:
I'm new to PlatformIO so I am not sure where or how it normally installs and finds tool chains that a project needs.
Please let me know if additional information is needed