Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Libraries to Extend Include Path #1063

Open
SciLor opened this issue Jul 27, 2020 · 6 comments
Open

Allow Libraries to Extend Include Path #1063

SciLor opened this issue Jul 27, 2020 · 6 comments

Comments

@SciLor
Copy link

SciLor commented Jul 27, 2020

It would be helpful to be able to specify additional include path for libraries when they are compiled.

For ex. I want to port libopus for energia. To compile it I need to add include path for several subdirectories.

See Arduino proposal/solution here

@rei-vilo
Copy link
Member

rei-vilo commented Jul 27, 2020

As the Energia IDE is based on Arduino, so the same limitations apply.

Some directions to explore:

  • Copying the libraries under the user's library folder.
  • Using other IDEs that feature a fine grain selection for libraries.

@SciLor
Copy link
Author

SciLor commented Jul 27, 2020

There is a pull request that addresses this issue.
arduino/arduino-cli#502
May it be possible to use the arduino-builder from arduino?

Yes, I have tried to. The problem is that Enegia just takes the "library/src" folder as include.

@rei-vilo
Copy link
Member

This is consistent with

Maglie, C. et al. (2013, February-March). Arduino IDE 1.5: library specification. Retrieved from http://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification

You could either adapt the structure of the library or use another more capable IDE.

Which board are you targeting, on which platform?

@SciLor
Copy link
Author

SciLor commented Jul 27, 2020

I am using a cc3200 which is used in a commercial product for what I am writing an alternative open source firmware. I have heavily modified/extended the cc3200 core for that.
I am developing on windows and Linux.

@rei-vilo
Copy link
Member

So you could use Code Composer Studio.

@vChavezB
Copy link

vChavezB commented May 6, 2022

Well, it seems that this issue will not be solved in the short term. I have developed a script that easily replaces include directives to relative ones. This should reduce the time it takes to port a 3rd party library to the Arduino ecosystem.

Links

Based on this script I easily ported the lwIP TCP/IP stack into Arduino.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants