Cuberite Forum

Full Version: Windows Lua location survey
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'd like to have a few Windows developers answer this simple survey for me, so that I can develop a FindLua CMake module that works for most people.

Three questions:
- Do you have the Lua standalone interpreter (lua.exe) installed, and in PATH (when you type "lua" in command prompt, does it start?)
- What distribution, and in what path? (LuaRocks / LuaBinaries / ...)
- In what folder is your lua.exe, if not in PATH?

If you have multiple Windows machines, list results for each, please.

Here's mine:

Computer1:
- yes, yes
- LuaRocks 2.1, in "c:\LuaRocks"
- in PATH

Computer2:
- yes, yes
- LuaRocks 2.2 in "c:\LuaRocks"
- in PATH

Thanks for your answers
Laptop:
- yes, yes
- LuaRocks 2.0.2 in C:\Program Files (x86)\Lua
- in PATH

I simply installed LuaForWindows which did everything you listed for me.
I thought we had more Windows people here. Has everyone moved to Linux?
I know that uses Windows.
Computer
- yes, yes
- LuaRocks 2.0.2 in C:\Program Files (x86)\Lua
- in PATH


Edit: LuaRocks version added. Thank you NiLSPACE
Any reason not to use the FindLua module included with cmake? We have to ship with the source anyway because there is no guarantee that lua is installed, so using system lua is just an optimization. And if cmake can't find your lua, you can force it with the LUA_DIR env var when running cmake.
Does the FindLua module find the lua standalone executable as well? And does it exist for Windows? I had a feeling that it didn't exist in some older cmake versions.

Seeing the results so far, I'm more inclined to simply test for system lua in path by simply trying to execute it.
Looking closer it does appear to be lib only. And if we're only going to use it to run build scripts just assuming its in path with a fallback to bundled is probably a simple solution.