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

Boost Filesystem

ScorpiOOn93

etherno.net
Joined
Jun 19, 2008
Messages
662
Reaction score
1
Location
CookieLand :DDD
Hello.
I can't compile TFS 0.3.5 on my Linux because i got few errors :/

I've downloades all needed packages etc. but now when i want to compile tfs it's showing me that error:
Code:
  scriptmanager.cpp:18:32: error: boost/filesystem.hpp: Nie ma takiego pliku ani katalogu
-bash: scriptmanager.cpp:18:32:: command not found
root@ks29059:/home/ser# scriptmanager.cpp: In member function 'bool ScriptingManager::loadMods()':
-bash: scriptmanager.cpp:: command not found
root@ks29059:/home/ser# scriptmanager.cpp:117: error: 'boost::filesystem' has not been declared
-bash: scriptmanager.cpp:117:: command not found
root@ks29059:/home/ser# scriptmanager.cpp:117: error: expected `;' before 'modsPath'
> scriptmanager.cpp:118: error: 'boost::filesystem' has not been declared
> scriptmanager.cpp:118: error: 'modsPath' was not declared in this scope
> scriptmanager.cpp:122: error: 'boost::filesystem' has not been declared
> scriptmanager.cpp:122: error: expected `;' before 'it'
> scriptmanager.cpp:122: error: 'it' was not declared in this scope
> scriptmanager.cpp:122: error: 'end' was not declared in this scope
> scriptmanager.cpp:125: error: 'boost::filesystem' has not been declared
> make[1]: *** [scriptmanager.o] Błąd 1
> make[1]: Opuszczenie katalogu `/home/ser'
> make: *** [all] Błąd 2

It can't find filesystem.hpp and of course I don't have this file.
I found 2 filesystem.hpp on some webpages but they're not working.
I was trying to download/find filesystem.hpp but it's not working.
 
Try "apt-get install libboost-filesystem" or "apt-get istall libboost-filesystem1.38.0"
maybe this will work but if not try reinstall all boost with command:
" apt-get install libboost1.38-dev libboost-system1.38-dev libboost-filesystem1.38-dev libboost-date-time1.38-dev libboost-regex1.38-dev libboost-thread1.38-dev".

If it is installed first remove it with command:
"apt-get purge libboost1.38-dev libboost-system1.38-dev libboost-filesystem1.38-dev libboost-date-time1.38-dev libboost-regex1.38-dev libboost-thread1.38-dev"
and install it again.
 
Eh...In polish:

Nadal to samo, miałem już paczki wszystkie 38 ale nadal miałem ten błąd, poza tym w tych paczkach niema tego pliku filesystem.hpp ;/
z Boost C++ Libraries ściągnałem wszystkie pliki typu filesystem.hpp itp; wsadziłem na dedyka w odpowiednie miejsca itp. to teraz jeszcze większy error, ale taki:
Code:
 actions.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
baseevents.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
beds.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
beds.o:/usr/include/boost/system/error_code.hpp:209: more undefined references to `boost::system::get_posix_category()' follow
otserv.o: In function `otserv(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, ServiceManager*)':
/home/ser/otserv.cpp:751: undefined reference to `g_admin'
/home/ser/otserv.cpp:752: undefined reference to `Admin::loadFromXml()'
otserv.o: In function `ProtocolAdmin':
/home/ser/admin.h:191: undefined reference to `vtable for ProtocolAdmin'
/home/ser/admin.h:197: undefined reference to `ProtocolAdmin::protocolAdminCount'
outfit.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
outputmessage.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
party.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
party.o:/usr/include/boost/system/error_code.hpp:209: more undefined references to `boost::system::get_posix_category()' follow
talkaction.o: In function `TalkAction::diagnostics(Creature*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/ser/talkaction.cpp:1095: undefined reference to `ProtocolAdmin::protocolAdminCount'
talkaction.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
tasks.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
teleport.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
teleport.o:/usr/include/boost/system/error_code.hpp:209: more undefined references to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Błąd 1
make[1]: Opuszczenie katalogu `/home/ser'
make: *** [all] Błąd 2

Spróbowałem też komend od Ciebie, odinstalowałem, zainstalowałem ponownie itp. i nadal to samo, a jak wykonuję komendę:
Code:
 apt-get install libboost-filesystem
To mi pokazuje:
Code:
 Nie udało się odnaleźć pakietu libboost-filesystem
 
I had the same problem!
The are problem with not correctly uninstaled oldest libboost you must be sure at you have uninstalled all files also install it again. With version of linux do you have?
Check all system destination for libboost it must be clear!
 
Last edited:
Back
Top