Add Lua problems to the troubleshooting section of INSTALL.md
authorWuzzy <Wuzzy2@mail.ru>
Wed, 01 Nov 2017 22:02:52 +0100
changeset 12817 b35b6978baa4
parent 12816 be7f05f83f8e
child 12818 d3113a4cba36
Add Lua problems to the troubleshooting section of INSTALL.md
INSTALL.md
--- a/INSTALL.md	Wed Nov 01 16:09:20 2017 -0400
+++ b/INSTALL.md	Wed Nov 01 22:02:52 2017 +0100
@@ -175,6 +175,19 @@
 `NOVIDEOREC=ON`, but then the video recording functionality will
 not be available.
 
+### Error messages related to Lua, “undefined reference to `lua_tonumber'”, and so on
+If you get error messages like these:
+
+* /home/username/hw/hedgewars//uScript.pas:226: undefined reference to `lua_tonumber'
+* /home/username/hw/hedgewars/CMakeFiles/hwengine.dir/uScript.o: In function `LUATOVISUALGEARTYPEORD':
+
+There might be something wrong with your Lua installation. Try to install Lua 5.1.
+If this doesn't work, or you don't want to install Lua 5.1, try to build Hedgewars
+with the bundled Lua version.
+
+To build with the bundled Lua version, adding the CMake option `SYSTEM_LUA=OFF`, then
+repeat the building process.
+
 ### Cleaning up
 
 In case you want to start over and start with a clean build,