2014年10月28日 星期二

[LuaDec51] Compile for Ubuntu

首先先到  luadec的網站下載Luadec51的source code : http://files.luaforge.net/releases/
之後再把lua5.1版本的source code下載下來 :  http://www.lua.org/versions.html



由於luadec51會用到Lua51的LIB   (liblua.a    and  liblualib.a)
所以先進到lua5.1的資料夾中去把 Lua compile起來,
$> cd lua5.1...
$> make all

則 liblua.a   and liblualib.a 在  luadec51/src  中可以找到

之後只要自己寫個Makefile指向這兩個lib就可以compile成功並執行囉

如果對於如何寫一個Makefile有問題可以留言在底下。