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

    Error compiling examples

    FAQS
    compilation dirent.h
    2
    3
    9.3k
    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
      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
        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
          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
          • First post
            Last post