• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Error Compiling TFS 1.2 (Ubuntu 20.04)

Derlexy

Well-Known Member
Joined
Jun 29, 2011
Messages
169
Reaction score
51
Hello guys. I've got some errors while compiling my server in Ubuntu 20.04 distro.

Server im using: GitHub - Ezzz-dev/Nostalrius: Nostalrius is a 7.7 Tibia Clone Project based on The Forgotten Server 1.2 and CipSoft files. (https://github.com/Ezzz-dev/Nostalrius) (its a TFS 1.2)
Tutorial im following: Compiling on Ubuntu · otland/forgottenserver Wiki (https://github.com/otland/forgottenserver/wiki/Compiling-on-Ubuntu) (Official guide from TFS 1.2)


CMakeError.log:
Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /home/joao/nostalgia-project/nostalgia-server/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_5529b/fast && /usr/bin/make -f CMakeFiles/cmTC_5529b.dir/build.make CMakeFiles/cmTC_5529b.dir/build
make[1]: Entering directory '/home/joao/nostalgia-project/nostalgia-server/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5529b.dir/src.cxx.o
/usr/bin/c++ -DCOMPILER_KNOWS_STDLIB -stdlib=libc++ -o CMakeFiles/cmTC_5529b.dir/src.cxx.o -c /home/joao/nostalgia-project/nostalgia-server/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
make[1]: *** [CMakeFiles/cmTC_5529b.dir/build.make:66: CMakeFiles/cmTC_5529b.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/joao/nostalgia-project/nostalgia-server/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_5529b/fast] Error 2


Source file was:
int main() { return 0; }

I remember to had compiled this same server, following this same tutorial in the past... I know the error is telling me that im missing some library or something, but i had installed all the guide's libs.

Maybe someone with a better expertise could help me?

Thank you.
Post automatically merged:

Solved this problem by installing some other libraries:
Bash:
sudo apt install llvm libmpfr-dev libgmp-dev libboost-all-dev
 
Last edited:
Top