• 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 Error TFS 1.1 compilling ubuntu

zetibia

Member
Joined
Jun 23, 2013
Messages
109
Reaction score
11
Hello friends, I am not able to compile the new Tfs 1.1 in ubuntu system, follow the tutorial however only error.


*follow this tutorial: https://github.com/otland/forgottenserver/wiki/Compiling-on-Ubuntu

root@ns240407:~/source/build# cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Failed
-- Performing Test COMPILER_KNOWS_CXX0X
-- Performing Test COMPILER_KNOWS_CXX0X - Success
-- Found GMP: /usr/include
-- MySQL Include dir: /usr/include/mysql library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: mysqlclient
-- Could NOT find LuaJIT (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - 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
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so
-- Boost version: 1.46.1
-- Found the following Boost libraries:
-- system
-- Configuring done
-- Generating done
-- Build files have been written to: /root/source/build


root@ns240407:~/source/build# make
Scanning dependencies of target tfs
[ 1%] Building CXX object CMakeFiles/tfs.dir/src/actions.cpp.o
In file included from /root/source/src/actions.cpp:22:0:
/root/source/src/actions.h:36:49: error: expected â;â at end of member declaration
/root/source/src/actions.h:36:51: error: âoverrideâ does not name a type
/root/source/src/actions.h:37:52: error: expected â;â at end of member declaration
/root/source/src/actions.h:37:54: error: âoverrideâ does not name a type
/root/source/src/actions.h:73:36: error: expected â;â at end of member declaration
/root/source/src/actions.h:73:42: error: âoverrideâ does not name a type
/root/source/src/actions.h:84:21: error: expected initializer before â:â token
In file included from /root/source/src/item.h:23:0,
from /root/source/src/bed.h:23,
from /root/source/src/actions.cpp:23:
/root/source/src/cylinder.h:236:21: error: expected â;â at end of member declaration
/root/source/src/cylinder.h:236:27: error: âoverrideâ does not name a type
/root/source/src/cylinder.h:239:27: error: expected â;â at end of member declaration
/root/source/src/cylinder.h:239:33: error: âoverrideâ does not name a type
/root/source/src/cylinder.h:242:39: error: expected â;â at end of member declaration
/root/source/src/cylinder.h:242:45: error: âoverrideâ does not name a type
/root/source/src/cylinder.h:245:20: error: expected â;â at end of member declaration
/root/source/src/cylinder.h:245:26: error: âoverrideâ does not name a type
In file included from /root/source/src/bed.h:23:0,
from /root/source/src/actions.cpp:23:
/root/source/src/item.h:321:17: error: expected â;â at end of member declaration
/root/source/src/item.h:321:19: error: âfinalâ does not name a type
/root/source/src/item.h:324:25: error: expected â;â at end of member declaration
/root/source/src/item.h:324:31: error: âfinalâ does not name a type
In file included from /root/source/src/bed.h:23:0,
from /root/source/src/actions.cpp:23:
/root/source/src/item.h:524:52: error: expected â;â at end of member declaration
/root/source/src/item.h:524:58: error: âfinalâ does not name a type
/root/source/src/item.h:535:21: error: expected â;â at end of member declaration
/root/source/src/item.h:535:27: error: âfinalâ does not name a type
/root/source/src/item.h:538:27: error: expected â;â at end of member declaration
/root/source/src/item.h:538:33: error: âfinalâ does not name a type
In file included from /root/source/src/actions.cpp:23:0:
/root/source/src/bed.h:28:21: error: expected initializer before â:â token
make[2]: *** [CMakeFiles/tfs.dir/src/actions.cpp.o] Error 1
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
make: *** [all] Error 2

Someone help me?
 
I use the version Ubuntu 12.04.5 LTS as the new ubuntu n could compile the source 1.0.

I'm trying to download the "git clone" however has a problem and giving error.

I used an old source 1.0 and the same can compile only the new 1.1 is giving problem.
 
root@ns240407:~# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
 
The compiler is to old. You will never be able to compile TFS 1.1 on this machine. Upgrade to something newer like Fedora 20 or CentOS 7 and follow the tutorial for compiling TFS from the wiki.
 
Back
Top