如何修复 PlatformIO fatal error: ../Fonts/fonts.h: No such file or directory
问题:
你正在尝试使用 BSP_DISCO_F429ZI 库编译 PlatformIO 应用程序,但你看到类似这样的错误消息
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.解决方案
BSP_DISCO_F429ZI 包从错误目录包含 fonts.h。替换
fix-include.c
#include "../Fonts/fonts.h"为
fixed-include.c
#include "Utilities/Fonts/fonts.h"以修复此问题。**你可能需要多次执行此操作(在多个文件中)**才能修复你的构建。
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