the most obvious reason of this error is that the library is either corrupted, or wrongly included in your directory.
The most obvious reason for the error is that it's being compiled for a board it's not compatible with. Likely there would have been documentation about which boards/architectures the library was written for in the documenation, which is why I wanted the link.
For adding libraries, the "Install from .zip" option on the Arduino IDE is not very reliable.
Please provide details about this unreliability. I've been using it frequently for the last 7 years and I can't remember every experiencing unreliability.
What I have experienced is helping many people here on the forum who attempted to manually install a library, did something wrong, and had problems.
Make sure the folder do not have another sub-folder in it, and then the source files.
What about the many libraries that use the 1.5 Arduino Library format?
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#layout-of-folders-and-filesThe library folder should be YOUR_NAMED_FOLDER->src/examples folders-> .c and .h files .
Huh?
Then put the YOUR_NAMED_FOLDER with all files in it in C:\Program Files (x86)\Arduino\libraries if your Arduino IDE is installed on the C drive (windows) or the parent folder accordingly.
That's a bad idea because everything in that folder will be lost every time you update to a new version of the Arduino IDE. You should always install libraries to the libraries subfolder of your sketchbook folder. You can find the location of your sketchbook folder in the Arduino IDE at
File > Preferences > Sketchbook location. That is the location where libraries installed via the Arduino IDE's
Sketch > Include Library > Add .ZIP Library or Library Manager are installed.
Here are the official instructions for installing Arduino libraries:
https://www.arduino.cc/en/Guide/Libraries