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

    Error compiling examples

    Scheduled Pinned Locked Moved FAQS
    compilationdirent.h
    3 Posts 2 Posters 10.8k Views 1 Watching
    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.
    • C Offline
      ChristianS
      last edited by ChristianS

      Hello everyone,

      First time on M5, and quite enthousiastic.
      Unfortunately, I am unable to compile examples under macOS 10.11.6, Arduino IDE 1.6.6

      I followed setup instructions here: https://m5stack.github.io/m5-docs/#/en/quick_start/m5core/m5stack_core_get_started_Arduino_MacOS?id=step1-install-arduino-ide

      but fixed library path according to a message posted on the forum: https://dl.espressif.com/dl/package_esp32_index.json

      Then, I tried to compile (or compile & upload) "Hello World": here is the message I get:

      WARNING: Spurious .git folder in 'M5Stack' library
      Build options changed, rebuilding all
      In file included from /Users/simon/Documents/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/xtensa-esp32-elf/include/dirent.h:6:0,
      from /Users/simon/Documents/Arduino/hardware/espressif/esp32/libraries/FS/src/vfs_api.h:24,
      from /Users/simon/Documents/Arduino/hardware/espressif/esp32/libraries/FS/src/vfs_api.cpp:15:
      /Users/simon/Documents/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/xtensa-esp32-elf/include/sys/dirent.h:10:2: error: #error "<dirent.h> not supported"
      #error "<dirent.h> not supported"
      ^
      exit status 1
      Error compiling.

      Any suggestion ?

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        ChristianS @ChristianS
        last edited by

        @christians After Arduino IDE update to 1.8.7, cleaning libs, re-installing, everything works well.

        :-))

        1 Reply Last reply Reply Quote 0
        • lukasmaximusL Offline
          lukasmaximus
          last edited by

          I was just about to suggest you update Arduino but you already figured it out. Any other issues you bump into let us know

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post