NO

Author Topic: Compiling Lua 5.02 for Win32 with Pelles C 2.90  (Read 8792 times)

nitex

  • Guest
Compiling Lua 5.02 for Win32 with Pelles C 2.90
« on: October 28, 2004, 06:55:09 PM »
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

  • Guest
Compiling Lua 5.02 for Win32 with Pelles C 2.90
« Reply #1 on: October 29, 2004, 06:43:38 AM »
very useful tips, thx, nitex !!  8)

nitex

  • Guest
Compiling Lua 5.02 for Win32 with Pelles C 2.90
« Reply #2 on: November 01, 2004, 05:48:21 PM »
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

  • Guest
Compiling Lua 5.02 for Win32 with Pelles C 2.90
« Reply #3 on: December 19, 2005, 10:46:58 PM »
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.