I think this is the issue - I am trying to follow a tutorial on using the ESP32 sense boards from Xiao (https://www.youtube.com/watch?v=qNzlytUdB_Q). When trying to test the board (with simple flashing LED) the interpreter claims it cannot find a library.
From research, this seems to be related to the very long pathname in the installation of the ESP32 library. I am using the latest version (2.2.1) of the IDE.
Is there any way to change the install directory?
Thanks,
Barryn56
Welcome to the forum
Please post the sketch that you are compiling and the full error message, using code tags for both to make them easy to see and copy for examination
Hi, the sketch is the example-basic-blink, with no changes:
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
https://www.arduino.cc/en/Main/Products
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
The error message is:
In file included from c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\stdlib.h:36,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/newlib/platform_include/assert.h:21,
from c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\sys-include\sys\reent.h:503,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32c3/include/newlib/platform_include/sys/reent.h:17,
from c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\sys-include\stdio.h:60,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:27,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Temp\arduino\sketches\A7A929E5EC257B0AB7026A0A0CDC08C2\sketch\Blink.ino.cpp:1:
c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
What exactly have you got the target board set to in the IDE ?
Hi, thanks for the comment. It is set to the xiao_esp32C3, as in the tutorial on youtube.
Regards,
Barry
That is not what it is set to in the video
Hi, true - my typo - but the result is similar using xiao_esp32s3:
In file included from c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\include\c++\8.4.0\cstdlib:41,
from c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\include\c++\8.4.0\stdlib.h:36,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:21,
from c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
from c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\sys-include\stdio.h:60,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:27,
from C:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Temp\arduino\sketches\95B1BE9D664AF157428F8602110207D1\sketch\Blink.ino.cpp:1:
c:\users\geoteknic.desktop-4p3798a\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\include\c++\8.4.0\xtensa-esp32s3-elf\no-rtti\bits\c++config.h:508:10: fatal error: bits/os_defines.h: No such file or directory
#include <bits/os_defines.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
Best regards,
Barry
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.