Programming -

Lua For Windows

글쓴이 : 유광희 날짜 : 2011-02-22 (화) 15:35 조회 : 36269
Project Information
Star project


Lua for Windows is a 'batteries included environment' for the Lua scripting language on Windows.

Lua for Windows (LfW) combines Lua binaries, Lua libraries with a Lua-capable editor in a single install package for the Microsoft Windows operating system. LfW contains everything you need to write, run and debug Lua scripts on Windows. A wide variety of libraries and examples are included that are ready to use with Microsoft Windows. LfW runs on Windows 2000 and newer versions of Windows. Lua and its associated libraries are also available for other operating systems, so most scripts will be automatically cross-platform.


Download Lua_V5.1.4-40.exe from Google Code

Install Notes

Lua for Windows installs Lua language, SciTE based Lua IDE and Lua modules to the directory of you choice at install time. Lua for Windows and it's modules all depend on the MSVC++ 2005 runtime library. Lua for Windows install will automatically download this runtime and install it for you if you don't have runtime installed on your computer. The runtime is contained in the file vcredist_x86.exe, if you don't want this download to occur at installation then place the vcredist_86.exe in same directory as Lua for Windows install exe.

LfW Components

Installer Lua Interpreter, Lua Reference Manual, Quick Lua Tour Sample, Examples directory, Libraries with documentation. Lua Compiler (luac) Text Editors (SciTE and I think maybe wxLua editors too) C header files/libraries/etc. for building C module

Libraries included

Alien0.4.1Provides access to functions in an unknown or new .dll.
IUP3.2.0Light Portable Graphical User Interface library.
CD5.3.0 Canvas Draw: A platform-independent graphic library.
IM3.6.0A toolkit for Digital Imaging.
ExJan 07Adds environment, file system, I/O (Locking and pipes), and process control.
LPeg0.9Pattern-matching library based on Parsing Expression Grammars (PEGs).
Lua-GD2.9.33r2Image manipulation library based on Thomas Boutell’s GD library.
LuaCOM1.4Enable use & implementation of Microsoft’s Component Object Model.
LuaCURL1.0Interface to Internet browsing capabilities based on the cURL library.
Date2Date and Time library for Lua.
LuaDoc3.01Documentation tool for Lua source code.
LuaExpat1.1.0Lua interface to XML Expat parsing library.
LuaFileSystem1.4.2Access the directory structure and file attributes.
LuaLogging1.1.4 Logging features in Lua, based on log4j.
LuaProfiler2.0.1Time profiler designed to find bottlenecks in Lua programs.
LuaSocket2.0.2Lua interface to support HTTP,FTP,SMTP, MIME, URL & LTN12.
LuaSQL2.1.1Lua interface for PostgreSQL, ODBC, MySQL, SQLite, Oracle, and ADO dbms.
LuaUnit1.3Testing framework for Lua.
LuaZip1.2.3Read files from zip files.
stdlib15Library of modules for common programming tasks, including list, table and functional operations, regexps, objects, pretty-printing and getopt.
lrexlib2.2Regular expression library for Lua.
MD51.1.2Basic cryptographic facilities for Lua.
Copas1.1.5Dispatcher based on coroutines that can be used by TCP/IP servers.
Coxpcall1.13Encapsulates the protected calls with a coroutine based loop, so errors can be dealed without the usual pcall/xpcall issues with coroutines.
Rings1.2.2Provides a way to create new Lua states from within Lua. It also offers a simple way to communicate between the creator ( and the created (slave) states.
LOOP2.3 BetaLOOP stands for Lua Object-Oriented Programming and is a set of packages for supporting different models of object-oriented programming in the Lua language.
LuaTask1.6.4Implements a concurrent and independent Lua execution environment model.
LuaInterface1.5.3 Integration between the Lua language and Microsoft .NET platform's Common Language Runtime (CLR).
wxLua2.8.10 Lua binding to the wxWidgets library.
lpack29 Jun 2007 19:27:20Lua library for packing and unpacking binary data.
VStruct1.0.2Provides functions for manipulating binary data.
LuaBitOps1.0.1 Lua BitOp is a C extension module for Lua 5.1 which adds bitwise operations on numbers.
LuaXML1.3A module that maps between Lua and XML without much ado.
Lanes2.0.4Provides the possibility to run multiple Lua states in parallel.
MetaLua0.5-rc1A complete macro system with full compatibility with Lua 5.1 sources and bytecode: clean, elegant semantics and syntax, amazing expressive power, good performances, near-universal portability.
LuaGL1.3Provides access to all of the OpenGL functionality from Lua 5.x .
Penlightv0.8.4Common lua code patterns for tables, arrays, strings, paths and directories, data, and functional programming.
lbase64for Lua 5.1A base64 library for Lua.
gzio0.9.0The Lua gzip file I/O module emulates the standard I/O module, but operates on compressed gzip format files.
LuaRS2321.0.0 RS232 serial communications library
LeMock0.6 Mock creation module intended for use together with a unit test framework such as lunit or lunity.
LuaRocks2.0.2 A deployment and management system for Lua modules.
Oil0.4-beta It is a simple, efficient and flexible object request broker written in the Lua language.

History 9/July/2008 - First release 16/July/2008 - Second release

  • New libs LOOPS, LuaTask, LuaInterface.
  • Add Lua headers and Lua lib needed for embedding Lua. 7/August/2008 - Third release

  • Added an environment variable called "LUA_DEV" to help C module developers configure their build files. This allows for the paths to be common and easily added to the project settings. (e.g. $(LUA_DEV)/include; $(LUA_DEV)/lib)
  • Added the ability to download the 'vcredist_x86.exe'.
  • Fixed Visual C++ 8.0 run-time problems. There now has to be a run-time for every dll loaded.
  • Removed 'msvcr80.dll' from the root application directory.
  • Updated the Visual C++ 8.0 run-time to SP1.
  • Updated StdLib to version 6.
  • Fixed missing Scite install issue with release. 9/September/2008 - Fourth release.

  • Fixed the readyiss.bat file to work with the new 'lua' directory.
  • Added wxLua support.
  • Updated to Lua v5.1.4.
  • Changed the 'lualibs' to 'lua' to support the default locations.
  • Updated SciTE property file to make the help show up correctly.
  • Removed setting the LUA_PATH and LUA_CPATH environment variables. 11/September/2008 - Fifth release.

  • Updated Stdlib to version 8.
  • Updated the quickluatour.lua.
  • Updated the luaforwindows document.
  • Fixed LuaInterface module. 08/October/2008 - 6th release. 26/November/2008 - 7th release.

  • Added lpack (29 Jun 2007 19:27:20) module.
  • Added VStruct v 1.0 beta2 Lua module.
  • Added BitLib release 25 module.
  • Added LuaXML v1.3 module.
  • Updated IUP to version 2.7.
  • Updated CD to version 5.1.
  • Updated IM to version 3.4. 5/December/2008 - 8th release.

  • Fixed a SciTE bug when opening the Lua manual.
  • Added lExecutor. This is a wxLua application that allows users to run console Lua scripts in a simple GUI. Look at the documentation (<lFW root>\docs\lexecutor) for more information.
  • Added 'wildcard'.lexe files to run using lExecutor.
  • Associated 'wildcard'.lexe files to a custom icon. 12/January/2009- 9th release.

  • Added LuaBitOp v1.0.1 library.
  • Fixed a bug in lExecutor to properly pass file loading error to the user.
  • Fixed LuaDoc templates a bit for 'tables' and 'functions'.
  • Fixed !LuaXML so it actually works. Opps.
  • Updated Copas to version 1.1.4.
  • Updated IUP to version 2.7.1.
  • Updated CD to version 5.1.1.
  • Updated IM to version 3.4.1.
  • Removed BitLib. Use LuaBitOp instead. 06/Febuary/2009 - 10th release.

  • Added MetaLua v0.5-rc1.
  • Added the 'strict.lua' file shipped in the Lua in the 'etc' directory.
  • Added Lanes v2.0.3 library.
  • Updated LuaFileSystem to version 1.4.2. rc1 14/April/2009 - 11th release

  • Updated LPeg to version 0.9.
  • Updated Copas to version 1.1.5.
  • Updated the Lua executables so they run on Windows 64 rc2 15/April/2009 - 12th release

  • Updated lua51.dll manifest to allow running on Windows 64. rc3 23/April/2009 - 13th release

  • Added an option to start the quickluatour.lua after installation completes.
  • Added a link to the lExecutor documentation in the start menu.
  • Now you can launch quickluatour.lua at the end of the installer
  • Updated luaforwindows.html to be the right version in the example.
  • Updated the LuaQuickTour thanks to Dirk Feytons.
  • Fixed SciTE saving a debugger file to the current running scripts directory. Now it saves it to your local temp directory.
  • Fixed SciTE toolbar icons being incorrect.
5.1.4-27 rc4 27/April/2009 -14th release
  • Fixed SciTE debugger looking for the temp file in the %TMP% location.
  • Fixed debugging files with spaces in the filename.
  • Updated the IM, CD, and IUP examples.
  • Made SciTE use the lua5.1.dll.
  • Changed the version number to use a '-' as a build number of the LfW package.
  • Changed the installer display name to 'Lua For Windows'.
5.1.4-28 29/June/2009 - 15th release
  • Fixed SciTE debugger to allow it to debug modules in the same directory as the file using the module.
  • Updated Stdlib to version 11.

5.1.4-29 03/Sept/2009 - 16th release

  • Added Penlight v0.7.2 Lua module.
  • Updated LuaCOM to version 1.4.
  • Updated LuaGL to version 1.3.
  • Updated VStruct to version 1.0.2.

5.1.4-30 10/Sept/2009 - 17th release

  • Added lbase64 module.
  • Added gzio module
  • Updated stdlib to Release 12.

5.1.4-31 07/Dec/2009 - Internal only, not released

  • Added markdown v0.32 Lua module.
  • Fixed C Runtime Error R 6034. Problem 3.
  • Fixed LuaInterface manifest loading issue.
  • Updated luanet.dll to CoInitialize and search in the LUA_CPATH.

5.1.4-32 12/March/2010 - 18th release

  • Added LuaRS232 v1.0.0
  • Added iLua.cmd to easily launch iLua. Also added it to the start menu.
  • Fixed SciTE to properly run interactive Lua session.
  • Updated the clidebugger to take the same paramaters to allow for debug level.
  • Updated Penlight to version 0.8.0.
  • Updated IUP to version 3.0.0.
  • Updated CD to version 5.3.0.
  • Updated IM to version 3.6.0.

5.1.4-33 12/March/2010 - 19th release

  • Added LeMock v0.6

5.1.4-34 18/March/2010 - 20th release

  • Updated Penlight to version 0.8.1

5.1.4-35 07/April/2010 - 21th release

  • Updated lExecutor to version 1.01
  • Updated Penlight to version 0.8.2

5.1.4-36 09/April/2010 - 22th release

  • Updated Penlight to version 0.8.3

5.1.4-37 04/May/2010 - 23th release

  • Updated Penlight to version 0.8.4

5.1.4-38 18/May/2010 - 24th release

  • Fixed #10 - LuaDoc incomplete. Added luadoc_start.bat.
  • Fixed #09 - luanet kill lua.exe
  • Updated the SciTE .api file. Now includes lfs, bit and pack.

5.1.4-39 17/June/2010 - 25th release

  • Added LuaRocks version 2.0.2.
  • Updated wxLua to version 2.8.10.
  • Updated stdlib to release 15.
  • Updated stdlib to release 14.
  • Updated stdlib to release 13.

5.1.4-40 26/July/2010 - 26th release

  • Fixes #14 - Just a simple mistake in the link to LuaEx.
  • Fixes #18 - Lua tutorial typo.
  • Reverted to wxLua version 2.8.7 because there are issues with the new versions stability. It will get updated later.
  • Fixed pplot examples that ship with IUP.
  • Closed #20 - Updated IUP to version 3.2.0.
  • Updated Lanes to version 2.0.4.
  • Added Oil version 0.4-beta.


Lua for Windows was created by Ryan Pusztai , Steve Donovan, and Andrew Wilson.


For more information please email All comments are welcome!