So I used accelstepper (an external library) to write code for a stepper motor. At the top of the code, I replaced include <AccelStepper.h> with include "AccelStepper.h". Then, I made a folder and put my .ino file and the external library folder into the new folder. I zipped it all up and sent it to another computer to see if it would work. I put the new folder on my desktop, opened it up, then clicked on the .ino file to open it up. I tried uploading it to my board and got this error:
WARNING: Category '' in library Ethernet2 is not valid. Setting to 'Uncategorized'
C:\Users\woodward\Documents\Arduino\accelstepper_syringe_speed\accelstepper_syringe_speed.ino:
So obviously I am not doing this right. Anyone know what might be the issue?
Well I need to send it to multiple people and I dont want them to have a headache trying to figure it all out on their computer. So I could use the library manager to help myself, but I would prefer if the other people could just click on the program and run it without having to deal with that.
What does the warning mean?
There are alot of other warnings or errors that show up after that warning, such as:
accelstepper_syringe_speed:86: error: no matching function for call to 'AccelStepper::setSpeed()'
You can pack it as
[yourCode]/yourcode.ino
libraries/AccelStepper/src/AccelStepper.h
libraries/AccelStepper/src/AccelStepper.h
libraries/AccelStepper/[possible other file form AccelStepper]
When you then extract it to the sketchbook the AccelStepper-library is nicely placed when it should
But you can ignore all the warnings, especially the invalid library crap. Then look at the first real error.
If you want us to help fix it, place all your code here in code-tags + link to the library.
I am sorry but I do not understand your packing instructions.
septillion:
You can pack it as
[yourCode]/yourcode.ino
libraries/AccelStepper/src/AccelStepper.h
libraries/AccelStepper/src/AccelStepper.h
libraries/AccelStepper/[possible other file form AccelStepper]
If you pack your sketch, lets call it "MySketch", then you have a folder called "MySketch" in which you have the "MySketch.ino". So
MySketch\MySketch.ino
Now let's say you want to pack it with "LibraryX". This will be a folder called "LibraryX" in which all library files are. So probably something like
LibraryX\scr\LibraryX.h
LibraryX\scr\LibraryX.cpp
LibraryX[maybe even more files]
Simple pack that folder next to your "MySketch"-folder in a folder called libraries. So you get:
MySketch\MySketch.ino
libraries\LibraryX\scr\LibraryX.h
libraries\LibraryX\scr\LibraryX.cpp
libraries\LibraryX[maybe even more files]
This works because all the downloaded libraries are (or should be!!) in a folder called libraries in your sketchbook (default location C:\Users[User]\Documents\Arduino). So when you extract a zip like that into a sketchbook then the external library is nicely merged with the local libraries folder
It's been a long time since Windows would try to replace the folder. Don't know about Linux and don't want to know about macOS... But Windows will merge folders