PlatformIO Wire.h: No Such File or Directory beheben
English
Deutsch
Problem:
Beim Kompilieren Ihrer PlatformIO-Firmware sehen Sie eine Fehlermeldung wie
wire_h_error_output.txt
In file included from .pio/libdeps/esp32dev/Adafruit INA219/Adafruit_INA219.cpp:31:0:
.pio/libdeps/esp32dev/Adafruit INA219/Adafruit_INA219.cpp:29:18: fatal error: Wire.h: No such file or directory
**************************************************************
* Looking for Wire.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:Wire.h"
* Web > https://platformio.org/lib/search?query=header:Wire.h
*
**************************************************************Lösung
Fügen Sie Wire zu den lib_deps in platformio.ini hinzu, zum Beispiel, vorher:
platformio_lib_deps_example.ini
lib_deps =
adafruit/Adafruit INA219 @ ^1.1.1Nachher:
platformio_lib_deps_fixed.ini
lib_deps =
adafruit/Adafruit INA219 @ ^1.1.1
Wireund kompilieren Sie dann neu.
Check out similar posts by category:
Arduino, Electronics, PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow