lua(一)Envirement

lua(1)Envirement
lua(1)Envirement

1. Install the tool
download the files
http://luaforwindows.googlecode.com/files/LuaForWindows_v5.1.4-45.exe
Double click this file to install lua on my system.

This tool includes these parts:
Lua Interpreter
Lua Reference Manual
Quick Lua Tour
Examples
Libraries with documentation
SciTE

Have a try with what we installed.
Create a new file with name hello.lua in SciTE. The content is very easy as follow:
print("hello,luohua")
press F5 to run this application.

2. Build Application with Eclipse
Download the latest Eclipse IDE for C/C++ Developers
http://ftp.neu.edu.cn/mirrors/eclipse/technology/epp/downloads/release/indigo/SR1/eclipse-cpp-indigo-SR1-incubation-win32-x86_64.zip

http://archive.eclipse.org/technology/epp/downloads/release/galileo/R/eclipse-cpp-galileo-win32.zip

http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/helios/SR2/eclipse-cpp-helios-SR2-win32-x86_64.zip

Eclipse plugin URL
http://luaeclipse.luaforge.net/update-site
install these features:
Lua Development Tool                         1.1.0.200710012327
LuaProfiler Support for LuaEclipse           1.0.0.20080222021

Create a New Lua Project in Eclipse, but I get an error information.
error messages:
Errors occurred during the build.
Errors running builder 'Lua Project Builder' on project 'easylua'.
D:\tool\eclipse-cpp\configuration\org.eclipse.osgi\bundles\320\1\.cp\luajava-1.1.dll: Can't find dependent libraries

No solution for this right now.

I tried eclipse 3.5, but there is no 64 bit version, so I even can not run it on my 64-bit windows system.

I tried eclipse 3.6, and try to install luaeclipse plugin 1.2, but get these error informations:
error message:
Cannot complete the install because some dependencies are not satisfiable
  org.keplerproject.ldt.feature.feature.group [1.2.0.200802220021] cannot be installed in this environment because its filter is not applicable.

Cannot complete the install because some dependencies are not satisfiable
  org.keplerproject.ldt.feature_x64.feature.group [1.2.0.200802220021] cannot be installed in this environment because its filter is not applicable.

http://files.luaforge.net/releases/luaeclipse/luaeclipse/LuaEclipse1.3Beta
http://files.luaforge.net/releases/luaeclipse/luaeclipse/LuaEclipse1.3Beta/luaeclipse-1.3.0.beta.zip

even, luaeclipse1.3 can not fix this problem.

error message:
Could not initialize class org.keplerproject.ldt.core.compiler.LuaResourceDeltaVisitor

Sorry, I do not continous to try eclipse with lua.

I will use SciTE as my tool.

references:
http://tech.it168.com/zt/lua/index.html
http://www.lua.org/
http://code.google.com/p/luaforwindows/
http://www.lua.org/docs.html
http://www.lua.org/manual/5.1/
http://blog.csdn.net/comicray/article/details/3970833
http://mobile.51cto.com/iphone-286198.htm
http://www.ibm.com/developerworks/cn/linux/l-lua.html
http://luaeclipse.luaforge.net/