forked from amperka/ino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a mechanism to specify a common library path within the configu…
…ration. Prior to this change you could either put the 3rd party library into the system 'libraries' directory for the arduino software (typically at /usr/local/share/arduino/libraries) or copy/symlink it into the [project]/lib directory. With this change there is a third option for including 3rd party libraries. The build command now allows for another library directory to be provided. This library directory will be used just like the prior two. The option is "--common-library" and it can be used with the build command or placed within the standard configuration files.
- Loading branch information
Jason McHugh
committed
Feb 15, 2013
1 parent
77decf0
commit e55df22
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e55df22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Jason
I am checking your version and it recognizes the new option, but I am having the following errors:
I tried both the command line and the conf file, but the behavior is always the same.
Any clue of whats is wrong?
Thanks in advance.
e55df22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there.
There are 2 things that I can think of:
1/ You have to specify a library directory that has the expected form used by the downstream tools. Specifically the library directory is a directory that contains within it 1 directory per library and then within those directories the actual library appears. The tools don't allow for any real variance in this. So for example I have:
$ ls -l ~/sketchbook/libraries/
total 16
drwxr-xr-x 3 mchughj mchughj 4096 Feb 9 22:09 manchester
drwxr-xr-x 3 mchughj mchughj 4096 Feb 9 22:27 RunningMedian
lrwxrwxrwx 1 mchughj mchughj 61 Feb 26 14:07 Ultrasonic -> /home/mchughj/projects/arduino/Ultrasonic-HC-SR04/Ultrasonic/
drwxrwxr-x 5 mchughj mchughj 4096 Feb 27 12:40 VirtualWire
$ ls -l ~/sketchbook/libraries/RunningMedian/
total 12
-rwxrwxr-x 1 mchughj mchughj 1582 Feb 10 00:04 README.md
-rwxrwxr-x 1 mchughj mchughj 3185 Feb 10 00:05 RunningMedian.cpp
-rwxrwxr-x 1 mchughj mchughj 3401 Feb 9 23:51 RunningMedian.h
Then I have to specify
ino build -l ~/sketchbook/libraries
and not ~/sketchbook/libraries/RunningMedian if I have #include "RunningMedian.h" in my sketch.
2/ The alternative is that you should do an 'ino clean' then an 'ino build -l [Your library directory].
Hope this helps.
Jason