cannot open source file "AvailabilityMacros.h" (dependency of "M5EPD.h")
-
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_FixUrlIf 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 -
@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?
-
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.inieg.
build_flags = -I /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/**
found solution on some japanese blog