Difference between revisions of "Lua development"
From ArmadeusWiki
(Page creation) |
(→Links) |
||
Line 40: | Line 40: | ||
==Links== | ==Links== | ||
* [http://www.lua.org/ Lua Homepage] | * [http://www.lua.org/ Lua Homepage] | ||
+ | * [http://www.lua.org/notes/ltn002.html Optimizing Lua for embedded systems] |
Revision as of 11:49, 4 June 2007
On this page you will learn how to create your first Lua script for your Armadeus board.
Installation
Lua interpreter is not installed in the default rootfs.
Lua version installed by Buildroot is x.x.
- Launch Buildroot's menuconfig:
armadeus$ make menuconfig
- In
- choosing Lua package automatically selects readline and ncurses one
- then save your configuration and build your system:
armadeus$ make
- copy generated rootfs to your NFS directory or on your MMC/SD. If you already have an existing rootfs then just make a:
armadeus$ cp -r buildroot/build_arm_nofpu/root/usr/ /local/export/
Here /local/export/ is my NFS directory.
Source code
First take your favorite editor/IDE and create the following script:
blah blah blah blah blah blah blah blah blah
Save it as ????
Compilation
Not needed. Transforming Lua script in executables hasn't been tested yet.
Running
- Copy your xxxxxx script on your NFS export directory or on your MMC/SD
- then on your APF console, launch it:
# lua xxxxx APF9328 says: Hello World ! ;-) #
Now it's up to you ! ;-)