🤖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")

    Scheduled Pinned Locked Moved General
    3 Posts 3 Posters 6.4k Views
    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 Offline
      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 Offline
        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 Offline
          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

          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