Compiling Issues
-
I have an m5epd 1.1 and am trying to compile the same code I used about 6 months ago on my m5epd 1.0. It now fails to compile. The environment is platformio inside of vscode.
My build file:
[env:m5paper] platform = espressif32 board = m5stack-fire framework = arduino upload_speed = 2000000 monitor_speed = 115200 board_build.partitions = default_16MB.csv build_flags = -DCORE_DEBUG_LEVEL=4 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DCORE_DEBUG_LEVEL=4 lib_deps = https://github.com/lovyan03/LovyanGFX m5stack/M5EPD bblanchon/ArduinoJson@5.13.4 jchristensen/Timezone@^1.2.4
The compile output, lightly edited for brevity
Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\IPA\lgfx_font_japan.c.o Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_cn.c.o Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_ja.c.o In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/Fonts/IPA/lgfx_font_japan.c:1: c:\users\greg\.platformio\packages\toolchain-xtensa-esp32\lib\gcc\xtensa-esp32-elf\8.4.0\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_kr.c.o In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/Fonts/efont/lgfx_efont_cn.c:1: c:\users\greg\.platformio\packages\toolchain-xtensa-esp32\lib\gcc\xtensa-esp32-elf\8.4.0\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/Fonts/efont/lgfx_efont_ja.c:1: c:\users\greg\.platformio\packages\toolchain-xtensa-esp32\lib\gcc\xtensa-esp32-elf\8.4.0\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_tw.c.o Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_pngle.c.o In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/Fonts/efont/lgfx_efont_kr.c:1: c:\users\greg\.platformio\packages\toolchain-xtensa-esp32\lib\gcc\xtensa-esp32-elf\8.4.0\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_qoi.c.o Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_qrcode.c.o Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_tjpgd.c.o Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\miniz.c.o In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/Fonts/efont/lgfx_efont_tw.c:1: c:\users\greg\.platformio\packages\toolchain-xtensa-esp32\lib\gcc\xtensa-esp32-elf\8.4.0\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. .pio/libdeps/m5paper/LovyanGFX/src/lgfx/utility/lgfx_pngle.c:32:10: fatal error: stdio.h: No such file or directory #include <stdio.h> ^~~~~~~~~ compilation terminated. .pio/libdeps/m5paper/LovyanGFX/src/lgfx/utility/lgfx_qoi.c:1:10: fatal error: stdio.h: No such file or directory #include <stdio.h> ^~~~~~~~~ compilation terminated. In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/utility/lgfx_tjpgd.h:29, from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/utility/lgfx_tjpgd.c:29: c:\users\greg\.platformio\packages\toolchain-xtensa-esp32\lib\gcc\xtensa-esp32-elf\8.4.0\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/utility/lgfx_qrcode.h:47, from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/utility/lgfx_qrcode.c:38: c:\users\greg\.platformio\packages\toolchain-xtensa-esp32\lib\gcc\xtensa-esp32-elf\8.4.0\include\stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\v0\LGFXBase.cpp.o .pio/libdeps/m5paper/LovyanGFX/src/lgfx/utility/miniz.c:162:10: fatal error: stdlib.h: No such file or directory #include <stdlib.h> ^~~~~~~~~~ compilation terminated. In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/v0/LGFXBase.cpp:22: .pio/libdeps/m5paper/LovyanGFX/src/lgfx/v0/lgfx_common.hpp:35:10: fatal error: type_traits: No such file or directory #include <type_traits> ^~~~~~~~~~~~~ compilation terminated. Compiling .pio\build\m5paper\libcfc\LovyanGFX\lgfx\v0\lgfx_fonts.cpp.o *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\IPA\lgfx_font_japan.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_cn.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_ja.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_kr.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\Fonts\efont\lgfx_efont_tw.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_pngle.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_qoi.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_tjpgd.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\lgfx_qrcode.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\utility\miniz.c.o] Error 1 *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\v0\LGFXBase.cpp.o] Error 1 In file included from .pio/libdeps/m5paper/LovyanGFX/src/lgfx/v0/lgfx_fonts.cpp:1: .pio/libdeps/m5paper/LovyanGFX/src/lgfx/v0/lgfx_common.hpp:35:10: fatal error: type_traits: No such file or directory #include <type_traits> ^~~~~~~~~~~~~ compilation terminated. *** [.pio\build\m5paper\libcfc\LovyanGFX\lgfx\v0\lgfx_fonts.cpp.o] Error 1 ================================= [FAILED] Took 7.74 seconds =================================