• 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 TFS 1.0

Diemorko

New Member
Joined
Jan 31, 2011
Messages
64
Reaction score
0
Hello, any one have compiled TFS 1.0 for Debian 6.0 x32bit? :p I'm tried of trying compling it :-/
 
Compiilng TFS 1.0 is ultra easy you could do it yourself with the tutorial that is on github.
 
Last edited by a moderator:
# apt-get install git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package git
E: Unable to locate package cmake
E: Unable to locate package build-essential
E: Unable to locate package liblua5.2-dev
E: Couldn't find any package by regex 'liblua5.2-dev'
E: Unable to locate package libgmp3-dev
E: Unable to locate package libmysqlclient-dev
E: Unable to locate package libboost-system-dev
 
apt-get install git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package liblua5.2-dev
E: Couldn't find any package by regex 'liblua5.2-dev'
 
Code:
apt-cache search liblua
or
Code:
apt-cache search liblua*-dev
and check given packages names. Then just use them with apt-get install.
 
git clone https://github.com/otland/forgottenserver.git
Cloning into forgottenserver...
remote: Counting objects: 6895, done.
remote: Compressing objects: 100% (2851/2851), done.
remote: Total 6895 (delta 4441), reused 6433 (delta 4020)
Receiving objects: 100% (6895/6895), 5.04 MiB | 2.33 MiB/s, done.
Resolving deltas: 100% (4441/4441), done.
root@ots:~# cd forgottenserver
root@ots:~/forgottenserver# mkdir build && cd build
root@ots:~/forgottenserver/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
-- MySQL client libraries: mysqlclient
-- REQUIRED_VARS (missing: LUA_LIBRARIES LUA_INCLUDE_DIR VERSION_VAR LUAJIT_VERSION_STRING)
-- REQUIRED_VARS (missing: VERSION_VAR)
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- system
-- Configuring done
CMake Error in CMakeLists.txt:
Cannot find source file "actions.cpp". Tried extensions .c .C .c++ .cc
.cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /root/forgottenserver/build

i can fing liblua 5.2 then I installes 5.1 ;-/
 
Last edited:
i can fing liblua 5.2 then I installes 5.1 ;-/
I am not sure what you mean. Please describe it with more details and better in English. You can use translate.google.pl.

I think the error you gave is caused by missing "action.cpp" file and REQUIRED_VARS (missing: LUA_LIBRARIES LUA_INCLUDE_DIR VERSION_VAR LUAJIT_VERSION_STRING VERSION_VAR).
Code:
-- REQUIRED_VARS (missing: LUA_LIBRARIES LUA_INCLUDE_DIR VERSION_VAR LUAJIT_VERSION_STRING)
-- REQUIRED_VARS (missing: VERSION_VAR)
(...)
Cannot find source file "actions.cpp". Tried extensions .c .C .c++ .cc

Maybe you can host (and compile) your server under Ubuntu 64 bit? I know it works very well.
 
Last edited:
Back
Top