Giter VIP home page Giter VIP logo

Comments (6)

gnthibault avatar gnthibault commented on June 20, 2024

Edit: Actually, fix for this issue was mentionned by @MrPointer in #55

It is a matter of order

But now I get:

/home/user/Documents/tests/Arduino/arduinocmake/src/Firmata.cpp:27:18: fatal error: Wire.h: No such file or directory

Although Wire.h is in

/path/arduino-1.8.8/hardware/arduino/avr/libraries/Wire/src/Wire.h

So it now looks clear that there is a problem with the find_arduino_library when it comes to something that is not in the libraries subdirectory of the arduino sdk, like for Wire:

find_arduino_library(Wire Wire ${board_id} )

I saw an example with this library in the examples:
https://github.com/arduino-cmake/Arduino-CMake-NG/tree/master/examples/platform-library

And tried to compile it:
I get (besides other bugs):
CMake Error at /home/user/projects/Arduinotest/Platform/Libraries/LibrariesFinder.cmake:38 (message):
Couldn't find library named Wire

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on June 20, 2024

@gnthibault Hi there - What branch are you using? Is it a release?

from arduino-cmake-ng.

gnthibault avatar gnthibault commented on June 20, 2024

@MrPointer I did used a release the latest I found from the github

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on June 20, 2024

@gnthibault Well that might explain it, as this bug is possibly already solved in the dev branch, which is master in our case.
You can try and clone it to see if that solves your issue, but do note - The API has changed (quite significantly actually) and there's not much docs about it yet (As it hasn't been officially released).
With that being said, I will gladly lead your way through this process, as I still don't know when the new version is gonna come out.

from arduino-cmake-ng.

ZsoltSaskovy avatar ZsoltSaskovy commented on June 20, 2024

@MrPointer I might be wrong, but I missed the functionality of "find_arduino_library" to add the directories of the header files to the include_directories list. Is it only me who can't use the framework properly, or there is no such functionality? I implemented it on my own. Would it make a sense to create a pull request of it, or it's less needed by others? Thanks, Zsolt

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on June 20, 2024

@ZsoltSaskovy I'm afraid I don't quite understand your precise intention.
Please do open a PR, it'll be better to discuss it there.

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.