• 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 newest TFS (cmake error)

exzrael

New Member
Joined
Feb 10, 2014
Messages
4
Reaction score
0
Hello. I have a problem with server compilation. crashes error what should I do?

CMAKE ERROR LOG
Code:
Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /root/forgottenserver/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d26b0/fast"
/usr/bin/make -f CMakeFiles/cmTC_d26b0.dir/build.make CMakeFiles/cmTC_d26b0.dir/build
make[1]: Entering directory '/root/forgottenserver/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d26b0.dir/src.cxx.o
/usr/bin/c++     -DCOMPILER_KNOWS_STDLIB   -stdlib=libc++ -o CMakeFiles/cmTC_d26b0.dir/src.cxx.o -c /root/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
CMakeFiles/cmTC_d26b0.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_d26b0.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_d26b0.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/root/forgottenserver/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d26b0/fast' failed
make: *** [cmTC_d26b0/fast] Error 2

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


CMAKEOUTPUT.LOG


Code:
Run Build Command:"/usr/bin/make" "cmTC_22ae7/fast"
/usr/bin/make -f CMakeFiles/cmTC_22ae7.dir/build.make CMakeFiles/cmTC_22ae7.dir/build
make[1]: Entering directory '/root/forgottenserver/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_22ae7.dir/src.cxx.o
/usr/bin/c++     -DCOMPILER_KNOWS_CXX11   -std=c++11 -o CMakeFiles/cmTC_22ae7.dir/src.cxx.o -c /root/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_22ae7
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_22ae7.dir/link.txt --verbose=1
/usr/bin/c++    -DCOMPILER_KNOWS_CXX11    CMakeFiles/cmTC_22ae7.dir/src.cxx.o  -o cmTC_22ae7 -rdynamic
make[1]: Leaving directory '/root/forgottenserver/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_KNOWS_LTO succeeded with the following output:
Change Dir: /root/forgottenserver/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_13007/fast"
/usr/bin/make -f CMakeFiles/cmTC_13007.dir/build.make CMakeFiles/cmTC_13007.dir/build
make[1]: Entering directory '/root/forgottenserver/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_13007.dir/src.cxx.o
/usr/bin/c++     -DCOMPILER_KNOWS_LTO   -flto -o CMakeFiles/cmTC_13007.dir/src.cxx.o -c /root/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_13007
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_13007.dir/link.txt --verbose=1
/usr/bin/c++    -DCOMPILER_KNOWS_LTO    CMakeFiles/cmTC_13007.dir/src.cxx.o  -o cmTC_13007 -rdynamic
make[1]: Leaving directory '/root/forgottenserver/build/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0; }
 
Are you trying to compile on mac?
see if this is of any help
 
That's confusing.
This:
c++: error: unrecognized command line option '-stdlib=libc++'
Is triggered by
Code:
if(APPLE AND COMPILER_KNOWS_STDLIB)
    add_compile_options(-stdlib=libc++)
endif()
Which would mean that your OS is recognized as APPLE.

But maybe I'm wrong, someone with more knowledge in this area might know.
 
the system is Ubuntu LTS 16.04, I test on android linux deploy, ARMv8 processor (armhf)

in the previous ubuntu there was no problem.

you can do something, what can I do?

Code:
root@localhost:~/forgottenserver/build# cmake ..
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.6 loaded.
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Performing Test COMPILER_KNOWS_LTO
-- Performing Test COMPILER_KNOWS_LTO - Success
-- Found Crypto++: /usr/include
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find PugiXML (missing: PUGIXML_INCLUDE_DIR PUGIXML_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindPugiXML.cmake:14 (find_package_handle_standard_args)
  CMakeLists.txt:25 (find_package)


-- Configuring incomplete, errors occurred!
See also "/root/forgottenserver/build/CMakeFiles/CMakeOutput.log".
See also "/root/forgottenserver/build/CMakeFiles/CMakeError.log".


Code:
Using username "root".
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.78-perf-gdd4cbe9-00555-gc7837cd armv8l)
 
Last edited:
apt-get install libpugixml-dev
if you have more issues try to redo the steps on the wiki
 
Solution
root@server842375:/home/ots/build# cmake ..
-- MySQL Include dir: /usr/include/mysql library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: /usr/lib/x86_64-linux-gnu/libmysqlclient.so;-ldl
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
Could not find a package configuration file provided by "boost_filesystem"
(requested version 1.71.0) with any of the following names:

boost_filesystemConfig.cmake
boost_filesystem-config.cmake

Add the installation prefix of "boost_filesystem" to CMAKE_PREFIX_PATH or
set "boost_filesystem_DIR" to a directory containing one of the above
files. If "boost_filesystem" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:64 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/ots/build/CMakeFiles/CMakeOutput.log".
See also "/home/ots/build/CMakeFiles/CMakeError.log".
 
Back
Top