hackiebox_cfw icon indicating copy to clipboard operation
hackiebox_cfw copied to clipboard

Extend Energia include path

Open SciLor opened this issue 4 years ago • 3 comments

Currently it is impossible to extend the include path within Energia. This makes it hard to include complex libs such as libopus which don't have relative includes within their files (and this mean you would need change every include within the external lib).

See https://github.com/energia/Energia/issues/1063 and https://github.com/arduino/arduino-cli/issues/501

SciLor avatar Dec 26 '20 20:12 SciLor

Possible solutions: Set up custom buildchain( see https://github.com/toniebox-reverse-engineering/hackiebox_cfw/issues/13 ) or fix Energia itself.

SciLor avatar Dec 26 '20 20:12 SciLor

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.

vChavezB avatar May 06 '22 16:05 vChavezB

Hey @vChavezB thank you for sharing. This would be a great option. If I stick to energia.

Currently I started to replace the compiler with the one from HackieboxNG. I also managed to get the debugger running via vscode.

SciLor avatar May 06 '22 16:05 SciLor