Integrating Lua with OpenAT application

Share your code with other community members. Please do not ask for code here; use the appropriate product forum instead.

Integrating Lua with OpenAT application

Postby chrisvan » Tue Apr 27, 2010 9:03 am

I am using Lua in an OpenAT application, and would like to to integrate Lua with the application for the release version. I only need basic Lua functionality (Lua tables and the string libraries) and Flash Objects to store the tables (I will not be using the Lua scheduler or Lua WIP functionality.)

I created a new project with the OpenAT Wizard and included WIP and Lua plug-ins. My lua functions were compiled to bytecode with luac51intc.exe from oatlua rev 36 (obtained last year from the SVN repository), and I integrated the Lua functions as explained in section 6 of the Lua manual (manual dated 20 February 2007). When I run wmmake I get the following error during the link step:

Code: Select all
... Link gcc_lua_from_c1_1MB+.bin ...
c:\openat-2.20\IDE\MINGW\\bin\make.exe: *** make_single_bin Error 1
/projet/gsmmi/int/plu/serena/lua_1.01.2010/PluginsBuild/libs/LUA/gcc/out/luaw_mem.c:494: undefined reference to `LUAW_MEM_ALARM_THRESHOLD'
[wmmake error #1] Build error.

It is clearly looking for LUAW_MEM_ALARM_THRESHOLD, in which library is this defined?

As an aside, I get the same error when I use the Lua sources from oatlua rev 36
and not using the Lua plug-in when I create a new project with the OpenAT Wizard.

Is there a way to link in only the required basic Lua and Flash Object libraries to save some memory?

OpenAT 2.20
Firmware R73_00
WIP 5.10.2020
Lua 1.01.2010

Posts: 19
Joined: Tue Mar 03, 2009 3:22 pm
Has thanked: 0 time
Have thanks: 0 time

Re: Integrating Lua with OpenAT application

Postby ljweko » Wed Apr 28, 2010 11:51 pm

Search this forum for 'mempool'. In particular, this post may be relevant:

So, depending on version, you may define it in mempool.h or main.c.
Posts: 110
Joined: Thu Dec 06, 2007 8:05 am
Has thanked: 2 times
Have thanks: 4 times

Return to Sample code

Who is online

Users browsing this forum: No registered users and 1 guest