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

Linux Boost Issue?

7804364

Member
Joined
Mar 6, 2010
Messages
457
Reaction score
10
SO when i use ./build.sh
on centos 7

i get

Code:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
#   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
  CXX      protocolold.o
  CXX      quests.o
make[1]: *** [luascript.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/root/sources'
make: *** [all] Error 2
 
go to "/usr/include/boost/filesystem/config.hpp" line 16 and change

!= 3

to

!= 2
Ok now i get,

Code:
                 from scriptmanager.cpp:20:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 2
#   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 2
     ^
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from luascript.cpp:21:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 2
#   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 2
     ^
scriptmanager.cpp: In member function ‘bool ScriptManager::loadMods()’:
scriptmanager.cpp:131:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
                       ^
make[1]: *** [scriptmanager.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/root/sources'
make: *** [all] Error 2
 
go to "/usr/include/boost/filesystem/config.hpp" line 16 and change

!= 3

to

!= 2
Dis regard the top error i edited line 16, when it should have been line 15

Code:
scriptmanager.cpp: In member function ‘bool ScriptManager::loadMods()’:
scriptmanager.cpp:131:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
 
Back
Top