Comments (6)
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.
@gnthibault Hi there - What branch are you using? Is it a release?
from arduino-cmake-ng.
@MrPointer I did used a release the latest I found from the github
from arduino-cmake-ng.
@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.
@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.
@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)
- Project is dead HOT 1
- upload_arduino_target does not work (avrdude problem?) HOT 4
- Problem when with determining link language. HOT 3
- Include library header from another library HOT 9
- Undefined reference error when linking 3rd party libraries. HOT 4
- Refactor upload API
- Undefined reference to countPulseASM when using pulseIn function HOT 8
- Newbie: need some hand holding. HOT 2
- RegisterHardwarePlatform doesn't work HOT 3
- Install for library depending on platform HOT 6
- FastLED library linker errors HOT 1
- vidor 4000 HOT 1
- SDK not found on Debian 9 with official Arduino binary HOT 2
- Provide means to override `avrdude`
- ARDUINO_SDK_PATH variable is forgotten during compiler check (v0.6.1) HOT 2
- Support for Third-Party Boards - Game plan HOT 4
- Reduce search-paths for version.txt file
- Board 'nano33ble' not working, unrecorgnized command -mcpu=cortex-m4 HOT 1
- SD card library is not being found. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-cmake-ng.