{"action":"created","issue":{"url":"https://api.github.com/repos/Robot-Will/Stino/issues/15","labels_url":"https://api.github.com/repos/Robot-Will/Stino/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Robot-Will/Stino/issues/15/comments","events_url":"https://api.github.com/repos/Robot-Will/Stino/issues/15/events","html_url":"https://github.com/Robot-Will/Stino/issues/15","id":12723468,"number":15,"title":"How to use libraries?","user":{"login":"stibi","id":57834,"avatar_url":"https://avatars.githubusercontent.com/u/57834?v=3","gravatar_id":"","url":"https://api.github.com/users/stibi","html_url":"https://github.com/stibi","followers_url":"https://api.github.com/users/stibi/followers","following_url":"https://api.github.com/users/stibi/following{/other_user}","gists_url":"https://api.github.com/users/stibi/gists{/gist_id}","starred_url":"https://api.github.com/users/stibi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stibi/subscriptions","organizations_url":"https://api.github.com/users/stibi/orgs","repos_url":"https://api.github.com/users/stibi/repos","events_url":"https://api.github.com/users/stibi/events{/privacy}","received_events_url":"https://api.github.com/users/stibi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Robot-Will/Stino/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":34,"created_at":"2013-04-02T20:22:25Z","updated_at":"2015-01-13T10:20:29Z","closed_at":"2013-09-08T07:25:26Z","body":"Hello,\r\nI'd like to ask, how to use libraries for Arduino with Stino?\r\nI have this problem with \"OneWire\" library, which I need for DS18B20 temperature sensor.\r\nLet's take a example source code from http://www.pjrc.com/teensy/td_libs_OneWire.html.\r\nI have the library in \"sketchbook/libraries/\", when I try to compile in Stino, it fails:\r\n\r\n    /home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp.o: In function `setup':\r\n    /home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:13: undefined reference to `OneWire::OneWire(unsigned char)'\r\n    /home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:14: undefined reference to `OneWire::search(unsigned char*)'\r\n    /home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:14: undefined reference to `OneWire::reset_search()'\r\n    /home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:14: undefined reference to `OneWire::crc8(unsigned char const*, unsigned char)'\r\n\r\n    ...etc...\r\n\r\nI thought I have to tell Stino where it can find the OneWire library, Via \"Add extra flags\":\r\n    -I/home/stibi/Development/Arduino/sketchbook/libraries/OneWire/\r\nBtw, is it correct?\r\n\r\nUnfortunately, it doesn't work.\r\nWhat I have missing there?\r\n"},"comment":{"url":"https://api.github.com/repos/Robot-Will/Stino/issues/comments/69723375","html_url":"https://github.com/Robot-Will/Stino/issues/15#issuecomment-69723375","issue_url":"https://api.github.com/repos/Robot-Will/Stino/issues/15","id":69723375,"user":{"login":"spambus","id":5335950,"avatar_url":"https://avatars.githubusercontent.com/u/5335950?v=3","gravatar_id":"","url":"https://api.github.com/users/spambus","html_url":"https://github.com/spambus","followers_url":"https://api.github.com/users/spambus/followers","following_url":"https://api.github.com/users/spambus/following{/other_user}","gists_url":"https://api.github.com/users/spambus/gists{/gist_id}","starred_url":"https://api.github.com/users/spambus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spambus/subscriptions","organizations_url":"https://api.github.com/users/spambus/orgs","repos_url":"https://api.github.com/users/spambus/repos","events_url":"https://api.github.com/users/spambus/events{/privacy}","received_events_url":"https://api.github.com/users/spambus/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T10:20:29Z","updated_at":"2015-01-13T10:20:29Z","body":"I have the same problem but with a different library, the plotly library https://github.com/plotly/arduino-api\r\n\r\nerrors:\r\n\r\n/tmp/Stino_build/Domotica/Domotica.ino.cpp.o: In function `__static_initialization_and_destruction_0':\r\n/Users/htpc/Documents/Arduino/Domotica/Domotica.ino:182: undefined reference to `plotly::plotly(char*, char*, char**, char*, int)'\r\n/tmp/Stino_build/Domotica/Domotica.ino.cpp.o: In function `loop':\r\n/Users/htpc/Documents/Arduino/Domotica/Domotica.ino:2588: undefined reference to `plotly::plot(unsigned long, float, char*)'\r\n/Users/htpc/Documents/Arduino/Domotica/Domotica.ino:2589: undefined reference to `plotly::plot(unsigned long, float, char*)'\r\n/tmp/Stino_build/Domotica/Domotica.ino.cpp.o: In function `setup':\r\n/Users/htpc/Documents/Arduino/Domotica/Domotica.ino:2475: undefined reference to `plotly::init()'\r\n/Users/htpc/Documents/Arduino/Domotica/Domotica.ino:2476: undefined reference to `plotly::openStream()'"}}