ADUINO compile error core2
-
Hi all,
When I try and compile my Core 2 in Arduino IDE I get this error #include <rom/miniz.h> error.
How can I rectify?
Thanks DARYL - Paradise Beach Australia
-
@VK3AWA_1
have you tried compile example programs? are you able to post your codes? -
@kuriko
Thanks for the reply. Yes I have since discovered that the M5Core2 examples cause the errors but the M5Unified examples work OK.CHEERS DARYL
-
- If you are using Windows 10, upgrade your Windows system to the latest version.
- Use other operating systems to compile (such as Linux distributions).
- First, make sure that "rom\miniz.h" exists in Arduino's ESP32 board manager files. Then try to manually change all paths containing #include <rom/miniz.h> to absolute paths. For example, #include "C:\Users\admin\Documents\Arduino\libraries\esp32-xxx\xxxxxx\rom\miniz.h"
-
Same issue here, with the M5Stack Core 1. Just installed all the packages / libraries following the M5Stack instructions.
#include <M5Stack.h> void setup() { // put your setup code here, to run once: M5.begin(); M5.lcd.print("Hello World!"); } void loop() { // put your main code here, to run repeatedly: }
Output:
c:\Arduino\libraries\M5Stack\src\utility\pngle.c:31:10: fatal error: rom/miniz.h: No such file or directory 31 | #include <rom/miniz.h> | ^~~~~~~~~~~~~ compilation terminated. exit status 1 Compilation error: exit status 1