I have a project on Arduino IDE. A .ino sketch with some extra .h/.cpp files and 2-3 libraries that I keep in ~/Arduino/libraries.

In addition to the IDE I do open the libraries as generic project in eclipse, of course this means no symbols resolution and no indexing which is bad for me. So I wanted to give Solebera try. I can see that Soleber includes the directory above however when compiling, I can clearly see it doesn't include any of those libraries! Also trying to add them doesn't work as the preference screen doesn't allow it/lists it.

So you help please,

  1. how can i make it even compile?
  2. will eclipse index it? I mean if I press 'ctrl + shift + r' and start typing RH_RF95 (radiohead rf95 driver cpp file) will it let me open it? (it does for Platformio).
  • in Eclipse Arduino Preferences you can set if it adds the libraries automatically. If you choose not auto, then use "Add a library to selected project" in Arduino menu. 2) yes – Juraj Feb 26 '19 at 19:28
  • I edit and debug libraries in a test project for the library. So the developed library is one of the libraries used by the project. – Juraj Feb 26 '19 at 19:54
  • nop didn't work for me, "automatic is set for me but adding RHGeenricDriver.h doesn't cause the library to be added. adding "libraries" to the project adds ALL the libraries , i can see them in the makefile but they are excluded including radiohead which has an include in the main file. so it doesn't work. seems like it's not the way to go after all. – codeScriber Feb 27 '19 at 7:47
  • do you have the libraries folder configured in Preferences? – Juraj Feb 27 '19 at 7:54
  • Yes i do. Its configured correctly, i checked. – codeScriber Feb 27 '19 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.