Hello,
Im trying to compile on a FreeBSD 9.3 jail.
I have installed gcc49 to work with C++11. and Used the
cmake -DCMAKE_C_COMPILER=gcc49 -DCMAKE_CXX_COMPILER=g++49 ..
But when i try to MAKE
I got this
Any ideas? Ty
Im trying to compile on a FreeBSD 9.3 jail.
I have installed gcc49 to work with C++11. and Used the
cmake -DCMAKE_C_COMPILER=gcc49 -DCMAKE_CXX_COMPILER=g++49 ..
-- The C compiler identification is GNU 4.9.4
-- The CXX compiler identification is GNU 4.9.4
-- Check for working C compiler: /usr/local/bin/gcc49
-- Check for working C compiler: /usr/local/bin/gcc49 -- 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/local/bin/g++49
-- Check for working CXX compiler: /usr/local/bin/g++49 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.6.9 loaded.
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/local/include
-- MySQL Include dir: /usr/local/include/mysql library dir: /usr/local/lib/mysql
-- MySQL client libraries: mysqlclient
-- Found LuaJIT: /usr/local/lib/libluajit-5.1.so;/usr/lib/libm.so (found version "2.0.4")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- CXX target tfs cotired without unity build.
-- Configuring done
-- Generating done
-- Build files have been written to: /forgottenserver/build
But when i try to MAKE
I got this
root@tibia:/forgottenserver/build # make
[ 1%] Generating CXX prefix source cotire/tfs_CXX_prefix.cxx
[ 2%] Generating CXX prefix header cotire/tfs_CXX_prefix.hxx
[ 3%] Building CXX precompiled header cotire/tfs_CXX_prefix.hxx.gch
Scanning dependencies of target tfs
[ 5%] Building CXX object CMakeFiles/tfs.dir/src/otpch.cpp.o
[ 6%] Building CXX object CMakeFiles/tfs.dir/src/actions.cpp.o
[ 7%] Building CXX object CMakeFiles/tfs.dir/src/ban.cpp.o
[ 8%] Building CXX object CMakeFiles/tfs.dir/src/baseevents.cpp.o
[ 10%] Building CXX object CMakeFiles/tfs.dir/src/bed.cpp.o
[ 11%] Building CXX object CMakeFiles/tfs.dir/src/chat.cpp.o
[ 12%] Building CXX object CMakeFiles/tfs.dir/src/combat.cpp.o
[ 13%] Building CXX object CMakeFiles/tfs.dir/src/commands.cpp.o
[ 15%] Building CXX object CMakeFiles/tfs.dir/src/condition.cpp.o
/forgottenserver/src/condition.cpp: In member function 'virtual bool ConditionRegeneration::executeCondition(Creature*, int32_t)':
/forgottenserver/src/condition.cpp:739:31: error: 'to_string' is not a member of 'std'
std::string healString = std::to_string(realHealthGain) + (realHealthGain != 1 ? " hitpoints." : " hitpoint.");
^
*** [CMakeFiles/tfs.dir/src/condition.cpp.o] Error code 1
Stop in /forgottenserver/build.
*** [CMakeFiles/tfs.dir/all] Error code 1
Stop in /forgottenserver/build.
*** [all] Error code 1
Stop in /forgottenserver/build.
Any ideas? Ty