• 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 latest TFS Error

strutZ

Australian OT Member {AKA Beastn}
Joined
Nov 16, 2014
Messages
1,393
Solutions
7
Reaction score
552
Hey guys before I wipe my server and start again I was wondering if anyone has come across this error before while compiling on CentOS 7?


Code:
[  1%] Building CXX object CMakeFiles/tfs.dir/src/actions.cpp.o
/home/bshift/forgottenserver/src/actions.cpp: In member function 'virtual bool Actions::registerEvent(Event*, const pugi::xml_node&)':
/home/bshift/forgottenserver/src/actions.cpp:103:87: error: 'class pugi::xml_attribute' has no member named 'as_string'
    std::cout << "[Warning - Actions::registerEvent] Missing toid in fromid: " << attr.as_string() << std::endl;
                                                                                       ^
/home/bshift/forgottenserver/src/actions.cpp:137:89: error: 'class pugi::xml_attribute' has no member named 'as_string'
    std::cout << "[Warning - Actions::registerEvent] Missing touid in fromuid: " << attr.as_string() << std::endl;
                                                                                         ^
/home/bshift/forgottenserver/src/actions.cpp:171:89: error: 'class pugi::xml_attribute' has no member named 'as_string'
    std::cout << "[Warning - Actions::registerEvent] Missing toaid in fromaid: " << attr.as_string() << std::endl;
                                                                                         ^
/home/bshift/forgottenserver/src/actions.cpp: In member function 'virtual bool Action::loadFunction(const pugi::xml_attribute&)':
/home/bshift/forgottenserver/src/actions.cpp:453:34: error: 'const class pugi::xml_attribute' has no member named 'as_string'
  const char* functionName = attr.as_string();
                                  ^
make[2]: *** [CMakeFiles/tfs.dir/src/actions.cpp.o] Error 1
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
make: *** [all] Error 2
 
Can you tell me what version of pugmi you are using?
I am always using latest.
This is how I install the dependencies after running sudo apt-get update:
Code:
sudo apt-get -y install git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libpugixml-dev
 
I am always using latest.
This is how I install the dependencies after running sudo apt-get update:
Code:
sudo apt-get -y install git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libpugixml-dev
Yeah i ran that. all of them are installed but i'm assuming becuase i was using centos7 half the dependancies i have are too old.. centos repos only had cmake 2.8.11 gonna try debian and see how i go. thanks again =)


Centos 7 does not support latest dependencies needed to compile the latest TFS. I have switched to debian and have had no issues as of yet.
 
Last edited:
Yeah i ran that. all of them are installed but i'm assuming becuase i was using centos7 half the dependancies i have are too old.. centos repos only had cmake 2.8.11 gonna try debian and see how i go. thanks again =)
Try my script with debian! Should work :)
 
Back
Top