Model01-Firmware icon indicating copy to clipboard operation
Model01-Firmware copied to clipboard

README.md: explain how to edit libraries

Open glasser opened this issue 8 years ago • 7 comments

glasser avatar Oct 17 '17 09:10 glasser

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.

obra avatar Oct 17 '17 19:10 obra

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.

Jennigma avatar Oct 17 '17 19:10 Jennigma

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.

algernon avatar Oct 17 '17 21:10 algernon

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...

algernon avatar Oct 17 '17 21:10 algernon

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 .

obra avatar Oct 17 '17 21:10 obra

@algernon - do we have a better answer for this these days?

obra avatar Aug 11 '18 04:08 obra

I do not think we have a better answer :(

algernon avatar Aug 11 '18 10:08 algernon