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

Build as library? #124

Open
jockm opened this issue Apr 29, 2018 · 2 comments
Open

Build as library? #124

jockm opened this issue Apr 29, 2018 · 2 comments

Comments

@jockm
Copy link

jockm commented Apr 29, 2018

Is it possible to build eLua as a library. I would like to incorporate eLua into an embedded app (on a microcontroller) so that app can launch eLua to run user scripts.

Any suggestions as to how to do this would be greatly appreciated

@bogdanm
Copy link
Member

bogdanm commented Apr 29, 2018

There's no way to do that currently, and it'll probably take more than a few changes to the build system to do it, since currently eLua insists to be in control of the whole system (platform initialization, memory allocation, interrupt handling and so on). So you're looking at a bit of work to make this happen.

@higaski
Copy link

higaski commented Jan 20, 2019

Packing eLua as configurable library might actually be a good idea. I think the MicroPython repository is a good example for that. They have several ports which range from "full-fledged" operating system with a whole lot of peripheral modules to "bare minimum" embedded interpreter.

For future reference I have patched a vanilla Lua 5.1.5 version with the LTR (http://lua-users.org/lists/lua-l/2008-11/msg00331.html) patch here:
https://www.load.to/7BTqXUrrlW/lua-5.1.5.tar.gz

I can't say how different it is from the version used in eLua though...

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

No branches or pull requests

3 participants