🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    rom/miniz.h error still occurs when compiling for Core with board def 3.2.x

    Cores
    3
    3
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • teastainT
      teastain
      last edited by teastain

      Only since the board def "updated" automatically from ver 2.1.4 to ver 3.2.x, I cannot compile my trusty, dusty Core Basic (Or Core2).

      /Arduino/libraries/M5Stack/src/utility/pngle.c:31:10: fatal error: rom/miniz.h: No such file or directory

      If I downgrade to 2.1.x it compiles as usual for 5 years running.

      I found this on google:

      https://www.gonnalearn.com/from-miniz-h-compilation-error-m5stack-arduino/

      and there have been some other reports on this very community site.
      https://community.m5stack.com/topic/7569/issue-with-core2-library

      My Arduino IDE ver2.3.6 asks me EVERY DAY to upgrade to M5Stack board def 3.2.x.
      This is getting tedious. Ver 3.2.1 recently added did not help.

      Is M5Stack abandoning the older Cores?

      Cheers, Terry!

      100% M5Stack addict with several drawers full of product!

      1 Reply Last reply Reply Quote 0
      • H
        hacxx Banned
        last edited by

        The rom/miniz.h error occurs because newer board definitions (3.2.x) removed legacy ESP32 support. Downgrading to 2.1.x works, but to fix it permanently:

        Manual fix: Replace #include <rom/miniz.h> with #include <miniz.h> in pngle.c (as noted in the linked guide).
        
        Disable auto-updates: In Arduino IDE, go to File > Preferences and uncheck "Check for updates on startup."
        

        M5Stack isn’t abandoning older Cores, but newer SDKs drop deprecated APIs. If issues persist, stick with 2.1.x or modify the library.

        TomKattT 1 Reply Last reply Reply Quote 0
        • TomKattT
          TomKatt @hacxx
          last edited by

          @hacxx said in rom/miniz.h error still occurs when compiling for Core with board def 3.2.x:

          M5Stack isn’t abandoning older Cores, but newer SDKs drop deprecated APIs. If issues persist, stick with 2.1.x or modify the library.

          Open source is great - until libraries get modified and changes are made that impact existing functionality... M5Stack isn't alone in this - it's a problem that spans the open source community.

          I get that technology is always changing... But there must be a better way to manage libraries. If I didn't stumble on these websites, I'd never have found the solution and it's very likely that I'd toss my affected M5Stack gear in the bin because it's basically unusable. And then I'd move on to a competitor's products that work.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post