Login
or
register
Overview
Overview
Why Lua?
Vision
Uses
Modules
General FAQ
Credits
License
Getting Started
Installation
Hello World
Databases
Web Servers
More Examples
Reference
FAQ
Getting Help
Status
News
Road Map
Releases
Site Edits
Community
Overview
Architecture
Detailed Road Map
Source
Builds
Bugs
FAQ
Dev Team
Mailing List
Building Kepler on Windows
Anonymous users must enter
captcha
below.
Page Parameters
Page Name (for URL)
Page Title
Don't put anything here
Show Advanced Options
Category
Prototype
Page Content
Kepler does not offer yet a way to build the whole set of Windows components in a single operation, but each of the components and the Kepler launchers can be built using the existing files on the source distribution. ## Kepler Window Directory Structure The build system assumes a default directory structure for the installation: c:\lua5.1 bin2c5.1.exe lua5.1.dll lua5.1.exe lua5.1.lib luac5.1.exe \include lauxlib.h lua.h lua.hpp luaconf.h lualib.h \lua You can create this structure using the [KeplerDevPack](http://www.keplerproject.org/kepler-1.1-devpack.zip) or install the files manually using [LuaBinaries](http://luaforge.net/frs/?group_id=110) (`lua5_1_2_Win32_dll_lib.zip` and `lua5_1_2_Win32_bin.zip`). ## Path Details In order to use the modules through `require()` the directory `c:\lua5.1` should be on your `package.cpath` and the directory `c:\lua5.1\lua` on your `package.path`. The 'lua5.1.exe' defaults assume those directories, and for the Kepler launchers the `kepler_init.lua` file handles this detail, but if your Windows installation have a `LUA_INIT` environment variable you need to make sure that its path definitions do not conflict with the above structure. Note that the executable directory `c:\lua5.1` should be in your system PATH. If you want to use another directory rather than `c:\lua5.1` you have to set `LUA_LIBDIR`, `LUA_INC` and `LUA_LIB` variables on file config.win from the module. ## External Libraries The Windows builds uses the following external libraries and assumes the default installation directory for each of them: * [MySQL 5.0](http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-essential-5.0.41-win32.msi/from/pick) - get the Windows installer, just choose the default directory * [Expat 2.0.0](http://sourceforge.net/project/showfiles.php?group_id=10127) - get the expat_win32 Windows installer (expat_win32bin_2_0_0.exe) and install it in c:\expat-2.0.0 * SQLite 3.3.17 - The official [SQLite download](http://www.sqlite.org/download.html) page does not offer this version anymore. Get the [sqlite-amalgamation-3_3_17.zip](http://www.keplerproject.org/luasql/deps/sqlite-amalgamation-3_3_17.zip) package from the Kepler site and expand it in c:\sqlite3 * [ZZipLib 0.13.49](http://zziplib.sourceforge.net) and [Zlib 1.2.3](http://www.zlib.net/) - To build ZZipLib and Zlib you need to compile the `.lib` files with `/MT`, but it is simpler to get the whole [zziplib-0.13.49-kepler.zip](http://www.keplerproject.org/luazip/deps/zziplib-0.13.49-kepler.zip) package from the Kepler site. This package contains both libraries in binary form and the include files ready for use. Expand it in c:\zziplib-0.13.49. ## Building with Visual C++ 2005 Express [Visual C++ 2005 Express](http://msdn.microsoft.com/vstudio/express/visualc) ("VC2005 Express") is a free (as in "free beer") C/C++ development environment available from MSDN. It includes `nmake` which is what Kepler for Windows is supposed to be built with. You will also need to install the Windows Platform SDK (you can use the link on the VC2005 Express page) and use its `setenv` command or define the `MSSDK` environment variable in VC2005 Express' `\Common7\Tools\vsvars32.bat` pointing to your Windows SDK directory: set MSSDK=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2 To build each one of the Kepler modules with VC2005 Express, you should get the sources [from CVS](http://kepler-tmp.dreamhosters.com/en/Source_Code) and then do: nmake -f Makefile.win To install the module into the default Kepler structure: nmake -f Makefile.win install This will copy the binary modules to the `c:\lua51\lib` directory while the Lua modules go to the `c:\lua51\lua` directory. If you need to clean up the CVS directory after installing the modules you can use nmake -f Makefile.win clean If you prefer to use the VC++ IDE you should follow some other [instructions](http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx) for the SDK integration. ### Status of VC2005 builds (see [[Checklist]] for more details on the release process) * CGILua - makefile OK * Copas - makefile OK * LuaExpat - needs 3rd party libraries (OK) * LuaFileSystem - makefile OK * LuaLogging - makefile OK * LuaSQL - needs 3rd party libraries (ODBC, MySQL, SQLite, ADO - OK. Postgres, Oracle need makefiles!) * LuaZip - needs 3rd party libraries (OK) * MD5 - makefile OK * Rings - makefile OK * Xavante - makefile OK * XavanteTray - makefile OK ## Building with Visual C++ 6 Building with Visual C++ should be similar to the Visual 2005 process, but may require some makefile tweaking.
Don't put anything here
About this Edit
Minor Edit
Don't put anything here
Edit Summary
Don't put anything here
Don't put anything here
Don't put anything here
Powered by
Sputnik
|
XHTML 1.1