jeremypoulter / ArduinoMongoose

A wrapper for Mongoose to help build into Arduino framework
25 stars 15 forks source link

Arduino IDE won't install this library #21

Closed kerryland closed 2 years ago

kerryland commented 2 years ago

I am a dumb beginner who has tried and failed to install this library. To reproduce my problem:

  1. From the git "Releases" tab download "Source code".
  2. From within Arduino IDE (1.8.19) use "Sketch | Include Library | Add .ZIP Library" and open the freshly downloaded "ArduinoMongoose-0.0.13.zip" file
  3. See "Specified folder/zip file does not contain a valid library"

So now I learn how to install the library manually and unzip the file into my "Arduino/libraries" folder, but when I visit the "Library Manager" to see it I get the error "Invalid library found in D:\dev\Arduino\libraries\ArduinoMongoose-0.0.13: no headers files (.h) found in D:\dev\Arduino\libraries\ArduinoMongoose-0.0.13"

I can see that there are .h files in the D:\dev\Arduino\libraries\ArduinoMongoose-0.0.13\src, so I don't know what it is complaining about.

After comparing "your" folder with other libraries, I noticed it was missing some files: keywords.txt, component.mk and library.properties -- so I made them up, and things are better, but still broken:

MongooseHttpClient.cpp:7:24: fatal error: MicroDebug.h: No such file or directory.

I installed the "Micro Debug" library, but that didn't help, and added an explicit #include <MicroDebug.h>, but that didn't help either.

Then I gave up.

Anyway, I thought you might like to know. I'm off to look at "Mongoose" now to learn if I can just use that directly -- wish me luck!

kerryland commented 2 years ago

...and then I discovered "Platform.io". Sheesh. I still think it's reasonable to be able to use the Arduino IDE, but maybe it's a traditional rite of passage for beginners. Or something.