• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Error when compiling OTClient in Linux

Magich

Member
Content Editor
Joined
Oct 5, 2008
Messages
58
Solutions
2
Reaction score
19
I'm getting these errors at console when trying to "make" (compile) OTClient:
Code:
/otclient/src/framework/luaengine/luainterface.cpp: En la función miembro ‘void LuaInterface::getEnv(int)’:
/otclient/src/framework/luaengine/luainterface.cpp:900:25: error: ‘lua_getfenv’ no se declaró en este ámbito
/otclient/src/framework/luaengine/luainterface.cpp: En la función miembro ‘void LuaInterface::setEnv(int)’:
/otclient/src/framework/luaengine/luainterface.cpp:907:31: error: ‘lua_setfenv’ no se declaró en este ámbito
make[2]: *** [CMakeFiles/otclient.dir/src/framework/luaengine/luainterface.cpp.o] Error 1
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
make: *** [all] Error 2
Could anyone help me?
Thank you in advance :)
PS: I'm using Ubuntu 12.04
EDIT:
Forgot to translate that, it would be something like:
Code:
/otclient/src/framework/luaengine/luainterface.cpp: In member function ‘void LuaInterface::getEnv(int)’:
/otclient/src/framework/luaengine/luainterface.cpp:900:25: error: ‘lua_getfenv’ was not declared in this scope
/otclient/src/framework/luaengine/luainterface.cpp: In member function ‘void LuaInterface::setEnv(int)’:
/otclient/src/framework/luaengine/luainterface.cpp:907:31: error: ‘lua_setfenv’ was not declared in this scope
make[2]: *** [CMakeFiles/otclient.dir/src/framework/luaengine/luainterface.cpp.o] Error 1
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
make: *** [all] Error 2
 
Last edited:
I think I had lua 5.2 installed, but for some reason didn't work. Now I installed lua 5.1.5 and it is working perfectly. Thank you!
 
Back
Top