Windows Lua location survey - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Windows Lua location survey (/thread-2474.html) |
Windows Lua location survey - xoft - 07-06-2016 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 RE: Windows Lua location survey - NiLSPACE - 07-06-2016 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. RE: Windows Lua location survey - NiLSPACE - 07-08-2016 I thought we had more Windows people here. Has everyone moved to Linux? RE: Windows Lua location survey - bearbin - 07-08-2016 I know that @tigerw uses Windows. RE: Windows Lua location survey - Seadragon91 - 07-08-2016 Computer - yes, yes - LuaRocks 2.0.2 in C:\Program Files (x86)\Lua - in PATH Edit: LuaRocks version added. Thank you NiLSPACE RE: Windows Lua location survey - worktycho - 07-11-2016 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. RE: Windows Lua location survey - xoft - 07-11-2016 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. RE: Windows Lua location survey - worktycho - 07-17-2016 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. |