• 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 [Linux] Ultimate compile guide for Debian (Ubuntu included)

Hello Elf, thanks for the turotial and for the servers updates.

I have a question...

Can it be compiled on a 64bit ubuntu server?

Thanks in advance!
 
I've got an error, when i tried to do the "2", install some packets:

I didn't understand the explaination about sources.list...
Can someone help me?

Bye!



I have too problem with this.

Who can help me?
 
Code:
root@ks302028:~# sudo g++ boost_asio_1_0_0/libs/system/src/error_code.cpp -c -o /usr/lib/libboost_system.a
In file included from boost_asio_1_0_0/libs/system/src/error_code.cpp:25:
/usr/include/boost/system/config.hpp:13:28: error: boost/config.hpp: No such file or directory
In file included from boost_asio_1_0_0/libs/system/src/error_code.cpp:26:
/usr/include/boost/system/error_code.hpp:15:29: error: boost/cstdint.hpp: No such file or directory
/usr/include/boost/system/error_code.hpp:16:28: error: boost/assert.hpp: No such file or directory
/usr/include/boost/system/error_code.hpp:17:31: error: boost/operators.hpp: No such file or directory
/usr/include/boost/system/error_code.hpp:18:33: error: boost/noncopyable.hpp: No such file or directory
/usr/include/boost/system/error_code.hpp:19:39: error: boost/utility/enable_if.hpp: No such file or directory
/usr/include/boost/system/error_code.hpp:32:68: error: boost/config/abi_prefix.hpp: No such file or directory
/usr/include/boost/system/error_code.hpp:487:70: error: boost/config/abi_suffix.hpp: No such file or directory
In file included from boost_asio_1_0_0/libs/system/src/error_code.cpp:26:
/usr/include/boost/system/error_code.hpp:182: b\u0142\u0105d: expected class-name before `{, token
/usr/include/boost/system/error_code.hpp:227: b\u0142\u0105d: `enable_if, in namespace `boost, does not name a type
/usr/include/boost/system/error_code.hpp:227: b\u0142\u0105d: expected `,, or `..., before `<, token
/usr/include/boost/system/error_code.hpp:241: b\u0142\u0105d: `enable_if, in namespace `boost, does not name a type
/usr/include/boost/system/error_code.hpp:241: b\u0142\u0105d: expected unqualified-id before `<, token
/usr/include/boost/system/error_code.hpp:314: b\u0142\u0105d: `enable_if, in namespace `boost, does not name a type
/usr/include/boost/system/error_code.hpp:314: b\u0142\u0105d: expected `,, or `..., before `<, token
/usr/include/boost/system/error_code.hpp:327: b\u0142\u0105d: `enable_if, in namespace `boost, does not name a type
/usr/include/boost/system/error_code.hpp:327: b\u0142\u0105d: expected unqualified-id before `<, token
What I should do?; - \
 
Last edited:
I have this problem :/ Please HELP !!

Code:
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT vocation.o -MD -MP -MF .deps/vocation.Tpo -c -o vocation.o vocation.cpp
mv -f .deps/vocation.Tpo .deps/vocation.Po
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1   -o theforgottenserver account.o actions.o admin.o allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o databasesqlite.o   depot.o exception.o fileloader.o game.o  globalevent.o gui.o house.o housetile.o inputbox.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o items.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o playerbox.o player.o position.o protocol.o protocolgame.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1   -lsqlite3 -lmysqlclient -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lgmp  -lxml2
make[1]: Opuszczenie katalogu `/root/0.3.2'
 
Mmm!! its right my libraries?

any libraries have "no" when in goin to compile



checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.6.32)
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init2 in -lgmp... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking boost/asio.hpp usability... yes
checking boost/asio.hpp presence... yes
checking for boost/asio.hpp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for main in -lmysqlclient... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking for main in -lsqlite3... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
 
@UP
i'm getting the same error ....
maybe somebody can help us ?
 
Last edited:
I have problem with ./autogen.sh
when I start this command i see this

Code:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:3: require Automake 1.10, but have 1.9.6
autoreconf: automake failed with exit status: 1
 
Code:
make
g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -Werror -Wall -O1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -D__USE_SQLITE__ -c actions.cpp
In file included from iologindata.h:27,
                 from game.h:37,
                 from actions.cpp:26:
database.h:31:25: error: mysql/mysql.h: No such file or directory
In file included from iologindata.h:27,
                 from game.h:37,
                 from actions.cpp:26:
database.h:126: error: 'MYSQL_ROW' has not been declared
make: *** [actions.o] Error 1

I get that error.
 
Code:
make
g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -Werror -Wall -O1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -D__USE_SQLITE__ -c actions.cpp
g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -Werror -Wall -O1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -D__USE_SQLITE__ -c admin.cpp
In file included from admin.cpp:24:
connection.h:25:26: error: boost/asio.hpp: No such file or directory
In file included from admin.cpp:24:
connection.h:63: error: expected ';' before '(' token
connection.h:92: error: 'boost::asio' has not been declared
connection.h:92: error: expected `)' before '*' token
connection.h:125: error: 'boost::asio' has not been declared
connection.h:125: error: ISO C++ forbids declaration of 'socket' with no type
connection.h:125: error: expected ';' before '&' token
connection.h:127: error: expected `;' before 'void'
connection.h:139: error: expected unqualified-id before '::' token
connection.h:139: error: expected ',' or '...' before '::' token
connection.h:140: error: expected unqualified-id before '::' token
connection.h:140: error: expected ',' or '...' before '::' token
connection.h:142: error: expected unqualified-id before '::' token
connection.h:142: error: expected ',' or '...' before '::' token
connection.h:145: error: expected unqualified-id before '::' token
connection.h:145: error: expected ',' or '...' before '::' token
connection.h:146: error: expected unqualified-id before '::' token
connection.h:146: error: expected ',' or '...' before '::' token
connection.h:147: error: expected unqualified-id before '::' token
connection.h:147: error: expected ',' or '...' before '::' token
connection.h:157: error: 'boost::asio' has not been declared
connection.h:157: error: ISO C++ forbids declaration of 'socket' with no type
connection.h:157: error: expected ';' before '*' token
connection.h:158: error: 'boost::asio' has not been declared
connection.h:158: error: ISO C++ forbids declaration of 'deadline_timer' with no type
connection.h:158: error: expected ';' before 'm_timer'
connection.h:159: error: 'boost::asio' has not been declared
connection.h:159: error: ISO C++ forbids declaration of 'io_service' with no type
connection.h:159: error: expected ';' before '&' token

New error...
 
Hello, i have a problem when i try to install libboost1.35-dev i get this error:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package libboost1.35-dev

elf says something about the sources.list but what do i have to put here? I always have got this problem when i try to compile :\, The OS is Debian etch.
 
I'm getting error when I'm compiling tfs 0.2.3
Code:
g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -Werror -Wall -O1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -c connection.cpp
cc1plus: warnings being treated as errors
server.h:44: warning: ‘class ServiceBase’ has virtual functions but non-virtual destructor
make: *** [connection.o] Error 1

Help me please
 
I'm trying to compile the 0.2.4, but when I get to the part that I need to use ./autogen.sh it says "bash: ./autogen.sh: There is no such file or directory".

But there is a folder called 'forgottenserver', 'source' and '0.2.4'.

Ps:I'm using Ubuntu 9.04
Ps2: If I compile it on Ubuntu, can I use it on Debian?
 
root@cory-desktop:/etc/apt/TheForgottenServer# ./autogen.sh
bash: ./autogen.sh: No such file or directory
 
I'm trying to compile the 0.2.4, but when I get to the part that I need to use ./autogen.sh it says "bash: ./autogen.sh: There is no such file or directory".

But there is a folder called 'forgottenserver', 'source' and '0.2.4'.

Ps:I'm using Ubuntu 9.04
Ps2: If I compile it on Ubuntu, can I use it on Debian?

in the terminal after all the steps put /cd source the do the last few steps
 
what can be? some help?

chi01-030-29:~/0.2.4# make
g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -Werror -Wall -O1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -D__USE_SQLITE__ -c connection.cpp
cc1plus: warnings being treated as errors
server.h:44: warning: âclass ServiceBaseâ has virtual functions but non-virtual destructor
make: *** [connection.o] Error 1
 
Back
Top