• 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!

Compiling TFS 1.X

Olddies

Classicot.com
Premium User
Joined
Nov 21, 2009
Messages
1,172
Solutions
12
Reaction score
309
Location
Dominican Republic 🇩🇴
hello i dont know what did happend with this but it was fine until 2 days ago, well im trying to compile my tfs like always and now i have this problem with any tfs sources inclusive the clean ones from github
Code:
[  1%] Linking CXX executable tfs
CMakeFiles/tfs.dir/src/combat.cpp.o: In function `ValueCallback::getMinMaxValues(Player*, CombatDamage&, bool) const':
combat.cpp:(.text+0x4f16): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/combat.cpp.o: In function `TargetCallback::onTargetCombat(Creature*, Creature*) const':
combat.cpp:(.text+0x533d): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::load()':
configmanager.cpp:(.text+0xae): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::getGlobalString[abi:cxx11](lua_State*, char const*, char const*)':
configmanager.cpp:(.text+0xf0f): undefined reference to `lua_getglobal'
configmanager.cpp:(.text+0xf6e): undefined reference to `lua_rawlen'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::getGlobalNumber(lua_State*, char const*, int)':
configmanager.cpp:(.text+0x107c): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::getGlobalBoolean(lua_State*, char const*, bool)':
configmanager.cpp:(.text+0x1106): undefined reference to `lua_getglobal'
configmanager.cpp:(.text+0x1159): undefined reference to `lua_rawlen'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::protectedCall(lua_State*, int, int)':
luascript.cpp:(.text+0x1210): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::getEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x1489): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x153c): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::getMetaEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x16cb): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::getStackTrace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x1af4): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x1bf0): undefined reference to `lua_callk'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerFunctions()':
luascript.cpp:(.text+0x45fb): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x4634): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x466d): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x46a6): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x46df): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o:luascript.cpp:(.text+0x4718): more undefined references to `lua_setglobal' follow
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x44005): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x44408): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x44446): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerGlobalMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x44584): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':
luascript.cpp:(.text+0x445c3): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerGlobalVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':
luascript.cpp:(.text+0x4465e): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerGlobalBoolean(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
luascript.cpp:(.text+0x446af): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::luaIsInArray(lua_State*)':
luascript.cpp:(.text+0x4867c): undefined reference to `lua_compare'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::luaAddEvent(lua_State*)':
luascript.cpp:(.text+0x48ddb): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x48e0e): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x48e7e): undefined reference to `lua_callk'
collect2: error: ld returned 1 exit status
CMakeFiles/tfs.dir/build.make:1897: recipe for target 'tfs' failed
make[2]: *** [tfs] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
hope someone could help me :O
 
You have undefined references and a lot of them

To explain it very basically
This means that you have code that is say "Hey look at this part of the code" and when it looks at that part there is nothing, though its more complex then that.

lua_pcallk
lua_getglobal

Those are 2 of the many you have that are undefined.
 
Back
Top