Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build Lua 5.2.2 in Windows

I already have Lua For Windows installed but as I read about the latest version of Lua which is 5.2.2, I noticed that Lua For Windows is using an old version of Lua which is 5.1.

I want to build the latest lua version to my windows 7 pc, but I don't quite get the idea on how I can build it. I already read this too Detailed Instruction for installing Lua. Do i need to remove the Lua For Windows ? please give me links how I can build it? what are the necessary tools to build the last lua source code.

Note: please also tell how can I test a source on it.

like image 983
Netorica Avatar asked Jan 12 '23 06:01

Netorica


1 Answers

Compiling lua on Windows using Visual Studio is as simple as:

  1. Downloading a copy of the lua source code and extracting it
  2. Opening a Visual Studio Developer Command Prompt and navigating to the 'src' directory
  3. Run this command: move luac.c .. & cl *.c -o lua.exe /O1
like image 121
user1461607 Avatar answered Jan 19 '23 12:01

user1461607