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

    cannot open source file "AvailabilityMacros.h" (dependency of "M5EPD.h")

    General
    3
    3
    5.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.
    • G
      gionata
      last edited by

      Hello,

      Just started using Visual Studio Code with the PlatformIO extension to develop a simple app for m5paper starting from the online image sample.
      https://github.com/m5stack/M5EPD_OnlineImage_FixUrl

      If I try debugging, the code does not build:
      cannot open source file "AvailabilityMacros.h" (dependency of "M5EPD.h")

      Any idea where is this library?

      Any help is appreciated,
      Gionata

      1 Reply Last reply Reply Quote 0
      • sodokuS
        sodoku
        last edited by

        @gionata said in cannot open source file "AvailabilityMacros.h" (dependency of "M5EPD.h"):

        AvailabilityMacros.h

        AvailabilityMacros.h is a file by Apple. It looks like it's provided by Xcode. Do you have Xcode installed?

        1 Reply Last reply Reply Quote 0
        • S
          springi
          last edited by

          In Mac Terminal, type
          xcrun --show-sdk-path
          to get the XCode SDK path.

          Add the path using the -I option and additional /usr/include/** to the build_flags option in platformio.ini

          eg.

          build_flags = 
          	-I /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/**
          

          found solution on some japanese blog

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