PlatformIO fatal error beheben: ../Fonts/fonts.h: No such file or directory
English
Deutsch
Problem:
Sie versuchen, eine PlatformIO-Anwendung mit der BSP_DISCO_F429ZI-Bibliothek zu kompilieren, aber Sie sehen eine Fehlermeldung wie
platformio-error.txt
In file included from .pio\libdeps\disco_f429zi\BSP_DISCO_F429ZI_ID2208\Drivers\BSP\STM32F429I-Discovery\stm32f429i_discovery_lcd.c:75:0:
.pio\libdeps\disco_f429zi\BSP_DISCO_F429ZI_ID2208\Drivers\BSP\STM32F429I-Discovery\stm32f429i_discovery_lcd.h:49:10: fatal error: ../Fonts/fonts.h: No such file or directory
#include "../Fonts/fonts.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.Lösung
Das BSP_DISCO_F429ZI-Paket bindet fonts.h aus dem falschen Verzeichnis ein. Ersetzen Sie
fix-include.c
#include "../Fonts/fonts.h"durch
fixed-include.c
#include "Utilities/Fonts/fonts.h"um das Problem zu beheben. Möglicherweise müssen Sie dies mehrmals (in mehreren Dateien) tun, um Ihren Build zu reparieren.
Check out similar posts by category:
C/C++, 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