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-tp7578479p7578481.html

Hi,

That tutorial needs to be updated since it is written for the older SCons-based build system.  The newer Lua-based build system handles things a bit differently.

At this point I believe you may only need to extend the elua_generic_modules table in conf/modules.lua (https://github.com/elua/elua/blob/master/config/modules.lua#L25), by adding, a line like:
json = {},

Let me know if that works.

Best.

-jsnyder

On Tue, Mar 24, 2015 at 11:30 AM, grahams [via eLua Development] <[hidden email]> wrote:
Hi All,

I'm trying to add a C module to my 0.10 eLua rom image.  I've used the instructions at http://wiki.eluaproject.net/Tutorials/cmodules as a guide but I do not understand how to add my module to the rom.  I can see that my module has been compiled and has an entry in the .map file.  When I try and access it on my development board though I get an "attempt to index global 'json' (a nil value)" error.  Can anyone point out what I've failed todo?

Thanks,

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-tp7578479.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