Giter VIP home page Giter VIP logo

Comments (3)

MrPointer avatar MrPointer commented on June 5, 2024

Hello @machadolab, and yet again welcome abroad!
You said that our framework doesn't search the Sketchbook location, and you're indeed correct.
I'll check this out and see if there's anything I can extract from the SDK's metadata to add this location to our search paths.
However, from my understanding it's something that's tightly bound to Arduino IDE's Library Manager, which our framework knows nothing about. It would make it impossible to know a user's Sketchbook location, unless - One would manually pass this location to the framework.

Regarding the issue you've come across with 3rd party libraries - Could you please submit a new, separate issue for this? It would be easier for us to maintain.

from arduino-cmake-ng.

masha256 avatar masha256 commented on June 5, 2024

So the issue is, since arduino libs need the same build flags as a 'built in' library, but the sketchbook location is not searched, there seems no way to build a project that uses these libs.

I suppose I could reverse engineer all the flags needed and simply treat it as a 'user library' but this seems way complicated since the library-manager installed libraries are basically exactly like the built in libs, just in a different location.

So I would suggest if you cant auto detect the sketchbook location, have a cmake parameter for them to specify the sketchbook location.

You should be able to easily reproduce this trouble by creating a very simple project using a Adafruit_NeoPixel example, for instance. You might also run into the same library naming issue I had too =)

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on June 5, 2024

@machadolab I think we misunderstood each other partly 😃
What I've meant is that you'd open a new issue for the bug regarding Adafruit_NeoPixel, since a failure to build this library (as well as all other "user" libraries) has nothing to do with the Sketchbook Location.
I'm saying this since I already have fixes for both, but the fixes resolve different issues, so it'd be nicer to have them managed as separate issues on GitHub as well.

However, I'll do this myself now to spare some time and just in case you still don't understand my intentions. Meanwhile, I'll also edit parts of this issue to attribute it solely to the Sketchbook Location "bug".
Edit: Take a look at #17 - This was my intention.

from arduino-cmake-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.