Compiling Lua 5.02 for Win32 with Pelles C 2.90

Started by nitex, October 28, 2004, 06:55:09 PM

Previous topic - Next topic

nitex

just download the lua distribution from the link below and use my attachment.

http://www.lua.org/ftp/lua-5.0.2.tar.gz

first extract the lua distribution to a dir, then extract the attachment into that dir too. in the source root dir should be a "build_win32_lua_pc.bat" and in "etc\" should be the file "windll.c". open "build_win32_lua_pc.bat" with an editor an change the options as needed. after that run the batch file to compile lua.

alex

Ngan Lo


nitex

thanks ngan lo!

i've updated the batch file. it now supports upx and petite for compression and automatically compiles debug and release builds for all files. i've also added the compilation to static libraries which will be written to the lib dir. the file "generate_output_txt.bat" was added which generates a "output.txt" for later reviewing.

greets, alex

hanelyp

To build lua for winCE I had to hack around a few absent library functions, mostly dealing with files.  Fortunately for my application, the lua features using them aren't needed.