Re: Adding C module to rom in eLua 0.10

Posted by jbsnyder on
URL: http://elua-development.15.s1.nabble.com/Adding-C-module-to-rom-in-eLua-0-10-tp7578479p7578483.html

Hi Graham,

Could you provide the luaopen & map definitions from your file?  I suspect the issue might be there.  Also, are you running a script or just starting up the Lua prompt with no arguments?

If you can't provide that, see the other modules in src/modules for how these portions should be set up.

I was able to take the tutorial on the wiki and with a few minor edits plus what I recommended I had it working in the image.  I've saved a few quick changes to that to be more consistent with the current build system.

Best.

-jsnyder



On Tue, Mar 24, 2015 at 12:29 PM, grahams [via eLua Development] <[hidden email]> wrote:
I think I may be nearly there,

Adding "json = {}" made a difference but has not fixed it.  When I start lua from the terminal I now get "lua: attempt to index a function value" output and the lua interrupter fails to start.

Graham


If you reply to this email, your message will be added to the discussion below:
http://elua-development.2368040.n2.nabble.com/Adding-C-module-to-rom-in-eLua-0-10-tp7578479p7578482.html
To start a new topic under eLua Development, email [hidden email]
To unsubscribe from eLua Development, click here.
NAML



--
James Snyder
ph: (847) 448-0386