• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Linux Compiling TFS 0.4 with Ubuntu

abes800

Experienced Member
Joined
Sep 3, 2010
Messages
2,036
Reaction score
131
Location
Sweden
I'm trying to compile TFS 0.4 with Ubuntu but after "make -j 2" I get:

Code:
iomap.cpp: In member function âbool IOMap::loadMap(Map*, const std::string&)â:
iomap.cpp:574: error: invalid conversion from âuint32_tâ to âtileflags_tâ
iomap.cpp:574: error:   initializing argument 1 of âvoid Tile::setFlag(tileflags_t)â
iologindata.cpp: In member function âbool IOLoginData::savePlayer(Player*, bool, bool)â:
iologindata.cpp:981: error: âquery_insertâ was not declared in this scope
iologindata.cpp:1028: error: âbufferâ was not declared in this scope
iologindata.cpp:1053: error: âbufferâ was not declared in this scope
iologindata.cpp:1083: error: âbufferâ was not declared in this scope
iologindata.cpp:1085: error: âbufferâ was not declared in this scope
iologindata.cpp:1087: error: âbufferâ was not declared in this scope
make[1]: *** [iomap.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [iologindata.o] Error 1
make[1]: Leaving directory `/home/zalvera/tfs'
make: *** [all] Error 2

Tried with both Ubuntu 10.04 and 10.10 (64bit).
 
In root
Hey abes utilize this source.list:

#
# deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted

#deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb Index of /ubuntu maverick main restricted
deb-src Index of /ubuntu maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb Index of /ubuntu maverick-updates main restricted
deb-src Index of /ubuntu maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb Index of /ubuntu maverick universe
deb-src Index of /ubuntu maverick universe
deb Index of /ubuntu maverick-updates universe
deb-src Index of /ubuntu maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb Index of /ubuntu maverick multiverse
deb-src Index of /ubuntu maverick multiverse
deb Index of /ubuntu maverick-updates multiverse
deb-src Index of /ubuntu maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb Index of /ubuntu maverick-backports main restricted universe multiverse
# deb-src Index of /ubuntu maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb Index of /ubuntu maverick partner
# deb-src Index of /ubuntu maverick partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb Index of /ubuntu maverick main
# deb-src Index of /ubuntu maverick main

deb Index of /ubuntu maverick-security main restricted
deb-src Index of /ubuntu maverick-security main restricted
deb Index of /ubuntu maverick-security universe
deb-src Index of /ubuntu maverick-security universe
deb Index of /ubuntu maverick-security multiverse
deb-src Index of /ubuntu maverick-security multiverse

execute command: apt-get update
If you have a problem in the final execute again.
apt-get update

next:

install alls boost:

apt-get install libboost1.42-dev libboost-system1.42-dev libboost-filesystem1.42-dev libboost-date-time1.42-dev libboost-regex1.42-dev libboost-thread1.42-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
 
Last edited:
Which version of tfs 0.4 you got? Try to change the version, but first try my repo:
Code:
deb http://pl.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://extras.ubuntu.com/ubuntu/ maverick main
deb-src http://extras.ubuntu.com/ubuntu/ maverick main

It's worked for me.
 
Back
Top