What's new

Kompilacja OTServ

Status
Not open for further replies.

dudeks

New User
Joined
May 27, 2008
Messages
4
Reaction score
0
Witam.

Od jakiego? czasu, tj. od 2 dni pr?buje skompilowa? silnik OTServ.
Najnowsze svnki ?ci?gni?te, wszystko ?adnie poinstalowa?em ( liby ). tj. wszystko - tak mi si? wydaje.
./autogen.sh przeszlo bez problemu.
./confige --enable-mysql tez przeszlo bez problemu.

Przy ko?cowym make'u ju? nie idzie tak ?atwo i nie wiem w czym tkwi problem.
W konsoli putty wywala takie cos:

Code:
dudeks@interstacje:/home/dudeks/ots/trunk$ make
make  all-am
make[1]: Entering directory `/home/dudeks/ots/trunk'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D_REENTRANT -Wall -g -O2 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
In file included from scheduler.h:25,
                 from game.h:33,
                 from actions.cpp:27:
tasks.h:59: error: 'system_time' in namespace 'boost' does not name a type
tasks.h: In constructor 'Task::Task(uint32_t, const boost::function<void ()(), std::allocator<void> >&)':
tasks.h:36: error: 'm_expiration' was not declared in this scope
tasks.h:36: error: 'get_system_time' is not a member of 'boost'
tasks.h:36: error: 'boost::posix_time' has not been declared
tasks.h: In constructor 'Task::Task(const boost::function<void ()(), std::allocator<void> >&)':
tasks.h:39: error: class 'Task' does not have any field named 'm_expiration'
tasks.h:39: error: 'boost::date_time' has not been declared
tasks.h: In member function 'void Task::setDontExpire()':
tasks.h:48: error: 'm_expiration' was not declared in this scope
tasks.h:48: error: 'boost::date_time' has not been declared
tasks.h: In member function 'bool Task::hasExpired() const':
tasks.h:51: error: 'm_expiration' was not declared in this scope
tasks.h:51: error: 'boost::date_time' has not been declared
tasks.h:53: error: 'm_expiration' was not declared in this scope
tasks.h:53: error: 'get_system_time' is not a member of 'boost'
tasks.h: At global scope:
tasks.h:101: error: 'condition_variable' in namespace 'boost' does not name a type
In file included from game.h:33,
                 from actions.cpp:27:
scheduler.h:42: error: 'system_time' in namespace 'boost' does not name a type
scheduler.h: In member function 'bool SchedulerTask::operator<(const SchedulerTask&) const':
scheduler.h:46: error: 'getCycle' was not declared in this scope
scheduler.h:46: error: 'const class SchedulerTask' has no member named 'getCycle'
scheduler.h: At global scope:
scheduler.h:101: error: 'condition_variable' in namespace 'boost' does not name a type
make[1]: *** [actions.o] Error 1
make[1]: Leaving directory `/home/dudeks/ots/trunk'
make: *** [all] Error 2
System na kt?rym pr?buje to zrobi? to Debian 5.0 (lenny)
Pomo?e kto? z tym? Dodam, i? szuka?em ju? na wielu forach, tj. otfans/otland i innych.
Chcia?em te? znale?? svn od tfs 0.3.6pl1 na protok?l 8.60, lecz nie znalaz?em, dlatego ten OTServ. Za pomoc z gory dzieki.

Pozdrawiam,
dudeks.
 

dudeks

New User
Joined
May 27, 2008
Messages
4
Reaction score
0
Odp: Kompilacja OTServ

No i tutaj jest taka rzecz, ?e instalowa?em boosty, boost::asioo ( czy jako? tak ). SVN mam najnowsze.
 

piti129

Advanced User
Joined
Apr 4, 2008
Messages
242
Reaction score
39
Odp: Kompilacja OTServ

Jak sie zabierasz za otserv to lepiej patrz na strone projektu niz na tnp czy otland:
 

Grzechu

Senior User
Joined
Nov 29, 2008
Messages
1,263
Reaction score
93
Odp: Kompilacja OTServ

Napisz jakie biblioteki zainstalowa?e??
Je?li pr?bujesz ponownie kompilowa? to u?ywaj komendy:
Code:
make clean && make
 

Szybol

Advanced User
Joined
Apr 14, 2008
Messages
210
Reaction score
30
Age
31
Odp: Kompilacja OTServ

Kolego, chyba si? zapomnia?o o bibliotekach typu: boost, mysql, xml2, lua5.1
Jak ju? niby znasz komendy itp, to bezproblemowo powiniene? sobie poradzi? z instalacj? paczek (pami?taj tylko na roocie lub koncie z full accessem).
 

dudeks

New User
Joined
May 27, 2008
Messages
4
Reaction score
0
Odp: Kompilacja OTServ

Witam ponownie.

Je?eli m?g?bym to prosz? o podanie mi wszystkich bibliotek jakie mam zainstalowa?, by skompilowa? ten silnik.
Mo?liwe, ?e mam przestarza?e, lub co? w tym stylu.
Prosz? o to z racji, i? kumpel u kt?rego chc? postawi? tego otserva zgodzi? si? zreinstalowa? system na dedyku.

Je?eli nie do tego, to mo?e by? do tfsa 0.3.6pl1.
Jak nikt nie b?dzie chcia? mi pom?c, bad? nie b?dzie m?g? to m?wi si? ?ycie, idzie si? dalej. Nie b?d? p?aka? nad gr?.

Pozdrawiam,
dudeks
 

Grzechu

Senior User
Joined
Nov 29, 2008
Messages
1,263
Reaction score
93
Odp: Kompilacja OTServ

wystarcz? Ci te biblioteki:
Code:
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
 

dudeks

New User
Joined
May 27, 2008
Messages
4
Reaction score
0
Odp: Kompilacja OTServ

A te repozytorium ( czy co? tam ) kto? poda?
Bo mam stare w sources.list i mi nie chce sci?gn??.
 

Grzechu

Senior User
Joined
Nov 29, 2008
Messages
1,263
Reaction score
93
Odp: Kompilacja OTServ

Code:
deb http://mir1.ovh.net/debian/ etch main
deb-src http://mir1.ovh.net/debian/ etch main
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
deb http://ftp.de.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.de.debian.org/debian testing main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
deb-src http://security.debian.org stable/updates main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free
deb-src http://security.debian.org testing/updates main contrib non-free

Po tym wykonaj
Code:
apt-get update
apt-get upgrade
 
Last edited:
Status
Not open for further replies.
Top