What should I do to compile tmwserv?

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Blamoo
Peon
Peon
Posts: 98
Joined: 03 Feb 2006, 23:07

What should I do to compile tmwserv?

Post by Blamoo » 22 Jun 2007, 20:49

what should i do to compile tmwserv? step by step plz... im newbie...

i've downloaded codeblocks, tmw-svn.DevPak, dev-c++ and lastest source code( https://svn.sourceforge.net/svnroot/the ... erv/trunk/)

and now?

build log:

Code: Select all

Project   : TMWServ Gameserver
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\WINDOWS\Desktop\trunk\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: src\game-server\trigger.cpp
src\game-server\trigger.cpp:24:35: game-server/trigger.hpp: No such file or directory
src\game-server\trigger.cpp:26:40: game-server/mapcomposite.hpp: No such file or directory
src\game-server\trigger.cpp:27:40: game-server/movingobject.hpp: No such file or directory
src\game-server\trigger.cpp:28:34: game-server/object.hpp: No such file or directory
src\game-server\trigger.cpp:29:33: game-server/state.hpp: No such file or directory
src\game-server\trigger.cpp:31: error: `WarpAction' has not been declared
src\game-server\trigger.cpp:31: error: variable or field `process' declared void
src\game-server\trigger.cpp:31: error: `Object' was not declared in this scope
src\game-server\trigger.cpp:31: error: `obj' was not declared in this scope
src\game-server\trigger.cpp:32: error: expected `,' or `;' before '{' token
src\game-server\trigger.cpp:40: error: `TriggerArea' has not been declared
src\game-server\trigger.cpp:40: error: `Rectangle' has not been declared
src\game-server\trigger.cpp:40: error: `TriggerAction' has not been declared
src\game-server\trigger.cpp:41: error: ISO C++ forbids declaration of `TriggerArea' with no type
src\game-server\trigger.cpp:41: error: ISO C++ forbids declaration of `r' with no type
src\game-server\trigger.cpp:41: error: ISO C++ forbids declaration of `ptr' with no type
src\game-server\trigger.cpp: In function `int TriggerArea(int, int&, int*)':
src\game-server\trigger.cpp:41: error: only constructors take base initializers
src\game-server\trigger.cpp:41: error: `OBJECT_OTHER' undeclared (first use this function)
src\game-server\trigger.cpp:41: error: (Each undeclared identifier is reported only once for each function it appears in.)
src\game-server\trigger.cpp:43: error: `setMapId' undeclared (first use this function)
src\game-server\trigger.cpp: At global scope:
src\game-server\trigger.cpp:46: error: `TriggerArea' is not a class or namespace
src\game-server\trigger.cpp: In function `void update()':
src\game-server\trigger.cpp:48: error: `MapComposite' undeclared (first use this function)
src\game-server\trigger.cpp:48: error: `map' undeclared (first use this function)
src\game-server\trigger.cpp:48: error: `gameState' undeclared (first use this function)
src\game-server\trigger.cpp:48: error: `getMapId' undeclared (first use this function)
src\game-server\trigger.cpp:50: error: `MovingObjectIterator' undeclared (first use this function)
src\game-server\trigger.cpp:50: error: expected `;' before "i"
src\game-server\trigger.cpp:50: error: `i' undeclared (first use this function)
src\game-server\trigger.cpp:52: error: `mZone' undeclared (first use this function)
src\game-server\trigger.cpp:54: error: `mAction' undeclared (first use this function)
Process terminated with status 1 (0 minutes, 2 seconds)
30 errors, 0 warnings
 

please help me... im a DELPHI programmer... not a C++ programmer T_T
User avatar
trapdoor
Novice
Novice
Posts: 216
Joined: 18 Feb 2007, 13:36

Post by trapdoor » 23 Jun 2007, 09:54

I would advise not to run the server on windows, instead use a UNIX or linux box and compile it & run it on there.

--
trapdoor
Blamoo
Peon
Peon
Posts: 98
Joined: 03 Feb 2006, 23:07

Post by Blamoo » 23 Jun 2007, 16:53

k... ill try to compile it under linux

thx :D
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 24 Jun 2007, 19:39

The server runs and compiles fine on windows.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Blamoo
Peon
Peon
Posts: 98
Joined: 03 Feb 2006, 23:07

Post by Blamoo » 25 Jun 2007, 00:54

Crush wrote:The server runs and compiles fine on windows.

but i dont know what should i do... im a delphi programmer... not a c++ programmer T_T
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 25 Jun 2007, 09:11

To compile the server you need to add the src folder to the include directiories for the compiler or get latest svn to fix it
Blamoo
Peon
Peon
Posts: 98
Joined: 03 Feb 2006, 23:07

Post by Blamoo » 26 Jun 2007, 14:37

i did...

do i need enet library to compile it?
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 26 Jun 2007, 15:58

Blamoo
Peon
Peon
Posts: 98
Joined: 03 Feb 2006, 23:07

Post by Blamoo » 27 Jun 2007, 00:00

i need pthread and SQLite too right?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 27 Jun 2007, 01:01

yes, you do.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Manaboy
Novice
Novice
Posts: 114
Joined: 21 Nov 2006, 08:44
Location: Germany

waht?

Post by Manaboy » 05 Jul 2007, 18:27

waht is tahts???
Event?
Hello my englich is not so good.

i from german :)

my lvl is 71
and my name is Manaboy in tmw
Blamoo
Peon
Peon
Posts: 98
Joined: 03 Feb 2006, 23:07

Re: waht?

Post by Blamoo » 06 Jul 2007, 00:10

Manaboy wrote:
waht is tahts???
Event?
what?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 06 Jul 2007, 00:22

Just ignore manaboy. He doesn't speak enough english to understand what's going on here let alone enough to express himself. But that doesn't stop him from trying anyway.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Post Reply