Introduction to Marmalade SDK with Lua

Home / Forums / Marmalade Community Code Projects / Introduction to Marmalade SDK with Lua
7 replies [Last post]
by: brain56
Status: Offline
Joined: 2012-06-07
Points: 60

Hi, I'm new here and just as well, I'm new to Marmalade!

My question is what functionalities/roles/whatever do a Lua scripting component perform for a Marmalade SDK project? And are there any tutorials out there to help me get started?

It seems like a basic question, but I've been googling and all and coming up with nothing.

Thanks!

by: Dane M
Status: Offline
Joined: 2012-05-27
Points: 270
Hi,

Hi,

I'm not the best candidate to answer your question, as I'm newbie too. And I'm not sure what I'm saying is the actual answer to your question, but I try my best.

You can get LUA for Marmalade from here: https://github.com/marmalade/lua. Then the only thing you need to do is add the mkb to your project.

If you decide to use Marmalade Studio Director (I personally don't use it), it support LUA scripting and you can add LUA script to your project.

by: brain56
Status: Offline
Joined: 2012-06-07
Points: 60
Dane, thanks for the

Dane, thanks for the information. Your comment means some progress for me! :D

by: matth
Status: Offline
Joined: 2010-07-23
Points: 22150
You cannot use LUA as a

You cannot use LUA as a development language to interface to the Marmalade SDK in the same way as say Corona does. However you can integrate the LUA module into your project and bind it to your own code

by: matth
Status: Offline
Joined: 2010-07-23
Points: 22150
In case you are still looking

In case you are still looking, heres a tutorial I recently wrote covering LUA integration - http://www.drmop.com/index.php/2012/06/26/marmalade-sdk-tutorial-integrating-lua-script-language/

by: tstmarmalade3@ukr.net
Status: Offline
Joined: 2012-06-22
Points: 10
see attached

see attached

Attachment: 
by: Arials
Status: Offline
Joined: 2011-07-18
Points: 250
Hi,

Hi,

I used math's tutorial and it works great!!!
Now I'm triying to add luasocket to lua module but i can't.
I add all src content from luasocket to the same folder of lua and add the files to the mkf. It compiles but, when use a script that want to "require("socket")", it never found the file "core.so".

I was looking into files and look likes in the makefile add a lot of files to a lib called "core.so" but I don't know how to do it in a mkb file.
Any idea??

Thanks a lot Math for your tutorial!!!

by: Arials
Status: Offline
Joined: 2011-07-18
Points: 250
Well, now I create a .lib

Well, now I create a .lib with the source code of luasocket (for x86 and other for the ARM) and I'm changing the source code of luaconf.h for search for .lib instead of .so, but I thing this is a bad way.
I can create a dll with the option dll in the mkb but, Can I get a .so or any compatible for the arm version??
I still working on it, any help is welcome!!

Latest Posts

Latest Comments

Top Contributors

  • Chris D : 27,010
  • MonRoyals : 26,970
  • Salman : 26,720
  • Jez Hammond : 20,130
  • pjan : 11,150
  • gjw : 10,350
  • Paolo Oliverio : 9,640
  • Beaker_2 : 8,390
  • Kite : 8,210
  • bluescrn : 7,810