• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling TFS 1.3 on Linux error

deglorio

New Member
Joined
Feb 1, 2009
Messages
10
Reaction score
0
Location
Brazil
Come on... This evolution is a very strange thing with my tfs 1.3 When compiling without windows, it goes normal and everything is no error, whenever it does not compress any Linux, regardless of the version, compile up to 100% and of the following error below, can anyone explain me what can be?

root@instance-1:/home/Source/build# make
Scanning dependencies of target tfs
[ 1%] Building CXX object CMakeFiles/tfs.dir/src/signals.cpp.o
[ 2%] Building CXX object CMakeFiles/tfs.dir/src/spawn.cpp.o
[ 4%] Building CXX object CMakeFiles/tfs.dir/src/spells.cpp.o
[ 5%] Building CXX object CMakeFiles/tfs.dir/src/talkaction.cpp.o
[ 6%] Building CXX object CMakeFiles/tfs.dir/src/tasks.cpp.o
[ 8%] Building CXX object CMakeFiles/tfs.dir/src/teleport.cpp.o
[ 9%] Building CXX object CMakeFiles/tfs.dir/src/thing.cpp.o
[ 10%] Building CXX object CMakeFiles/tfs.dir/src/tile.cpp.o
[ 12%] Building CXX object CMakeFiles/tfs.dir/src/tools.cpp.o
[ 13%] Building CXX object CMakeFiles/tfs.dir/src/trashholder.cpp.o
[ 14%] Building CXX object CMakeFiles/tfs.dir/src/vocation.cpp.o
[ 16%] Building CXX object CMakeFiles/tfs.dir/src/waitlist.cpp.o
[ 17%] Building CXX object CMakeFiles/tfs.dir/src/weapons.cpp.o
[ 18%] Building CXX object CMakeFiles/tfs.dir/src/wildcardtree.cpp.o
Linking CXX executable tfs
/tmp/ccU6KX72.ltrans2.ltrans.o: In function `Spawn::spawnMonster(unsigned int, MonsterType*, Position const&, Direction, bool)':
ccU6KX72.ltrans2.o:(.text+0xdd86): undefined reference to `Monster::Monster(MonsterType*)'
/tmp/ccU6KX72.ltrans2.ltrans.o: In function `std::default_delete<Monster>::operator()(Monster*) const':
ccU6KX72.ltrans2.o:(.text+0xf605): undefined reference to `Monster::~Monster()'
/tmp/ccU6KX72.ltrans3.ltrans.o: In function `SingleSpawnEvent::executeEvent()':
ccU6KX72.ltrans3.o:(.text+0x12435): undefined reference to `Monster::createMonster(std::string const&)'
ccU6KX72.ltrans3.o:(.text+0x124b4): undefined reference to `Monster::~Monster()'
/tmp/ccU6KX72.ltrans3.ltrans.o: In function `AreaSpawnEvent::executeEvent()':
ccU6KX72.ltrans3.o:(.text+0x12dcc): undefined reference to `Monster::createMonster(std::string const&)'
ccU6KX72.ltrans3.o:(.text+0x12f4c): undefined reference to `Monster::~Monster()'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaGameCreateMonster(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0x2b7): undefined reference to `Monster::createMonster(std::string const&)'
ccU6KX72.ltrans11.o:(.text+0x3e6): undefined reference to `Monster::~Monster()'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterIsInSpawnRange(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0xfb49): undefined reference to `Monster::isInSpawnRange(Position const&) const'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterSetIdle(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0xfc27): undefined reference to `Monster::setIdle(bool)'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterIsTarget(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0xfc90): undefined reference to `Monster::isTarget(Creature const*) const'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterIsOpponent(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0xfd06): undefined reference to `Monster::isOpponent(Creature const*) const'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterIsFriend(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0xfd7c): undefined reference to `Monster::isFriend(Creature const*) const'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterAddFriend(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0xfdf2): undefined reference to `Monster::addFriend(Creature*)'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterRemoveFriend(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0xfe68): undefined reference to `Monster::removeFriend(Creature*)'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterAddTarget(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0x100b2): undefined reference to `Monster::addTarget(Creature*, bool)'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterRemoveTarget(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0x10128): undefined reference to `Monster::removeTarget(Creature*)'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterSelectTarget(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0x10334): undefined reference to `Monster::selectTarget(Creature*)'
/tmp/ccU6KX72.ltrans11.ltrans.o: In function `LuaScriptInterface::luaMonsterSearchTarget(lua_State*)':
ccU6KX72.ltrans11.o:(.text+0x103ac): undefined reference to `Monster::searchTarget(TargetSearchType_t)'
/tmp/ccU6KX72.ltrans23.ltrans.o: In function `Game::loadMainMap(std::string const&)':
ccU6KX72.ltrans23.o:(.text+0xe30e): undefined reference to `Monster::despawnRange'
ccU6KX72.ltrans23.o:(.text+0xe323): undefined reference to `Monster::despawnRadius'
/tmp/ccU6KX72.ltrans23.ltrans.o: In function `Game::getCreatureByID(unsigned int)':
ccU6KX72.ltrans23.o:(.text+0xebe5): undefined reference to `Monster::monsterAutoID'
/tmp/ccU6KX72.ltrans25.ltrans.o: In function `Creature::goToFollowCreature()':
ccU6KX72.ltrans25.o:(.text+0xd128): undefined reference to `Monster::getDistanceStep(Position const&, Direction&, bool)'
ccU6KX72.ltrans25.o:(.text+0xd158): undefined reference to `Monster::getDistanceStep(Position const&, Direction&, bool)'
collect2: error: ld returned 1 exit status
CMakeFiles/tfs.dir/build.make:1929: recipe for target 'tfs' failed
make[2]: *** [tfs] Error 1
CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
 
Back
Top