README.md: explain how to edit libraries
Having advice about this here is reasonable, but I don't think that this is the right advice. (Well, I desperately hope that this is not the right advice.)
I'll test what I believe to be the correct solution today and propose an update.
I mentioned in the thread on the community board that I encountered a multiple copies of a library compile time warning through the IDE, and it appeared to be respecting the order in $PATH when it chose which one to include. Should be easy enough to talk folks through changing that variable, though I have no idea how pc's handle such things.
it appeared to be respecting the order in $PATH when it chose which one to include.
It's sadly much more complicated than that. I went to figure this out once, and I seem to recall documenting my findings in an issue somewhere... will try to dig that up, perhaps it will prove helpful for others.
Had a look, and this was on IRC, before logging was set up. The gist of things is that built-in libraries can be overridden by others, the order - if my IRC notes are to be trusted - depends on the order of -libraries <path> passed to arduino-builder.
Built-in libraries are those that come with Arduino, and libraries under the hardware hierarchy.
Perhaps it isn't that complicated after all...
We should log what the current order from the IDE is and make sure the makefile does it the same way. And then see if the right thing happens.
If it doesn't, I'd be ok with the makefile having a a way to build with local libraries, even if the IDE doesn't.
On Tue, Oct 17, 2017 at 2:46 PM, Gergely Nagy [email protected] wrote:
Had a look, and this was on IRC, before logging was set up. The gist of things is that built-in libraries can be overridden by others, the order - if my IRC notes are to be trusted - depends on the order of -libraries
passed to arduino-builder. Built-in libraries are those that come with Arduino, and libraries under the hardware hierarchy.
Perhaps it isn't that complicated after all...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/keyboardio/Model01-Firmware/pull/21#issuecomment-337382406, or mute the thread https://github.com/notifications/unsubscribe-auth/AACxaGlPdV5K4MMldAaxpcfmq1UmXQUnks5stSA6gaJpZM4P70ns .
@algernon - do we have a better answer for this these days?
I do not think we have a better answer :(